1
before_filter :only => :destroy do |controller|
controller.is_object_on_same_account_as_current_account_for_id?(controller_name.classify.constantize, params[:id])
end
生成錯誤:Ruby on Rails 2.3.8:params在before_filter中是未定義的?
NameError: undefined local variable or method `params'
app/controller/controller:4
我認爲PARAMS總是可用的整個請求過程... = \
- 現在要弄清楚如何修改它... – MBHNYC