I've tried to use IR in rails4 app, but my code
class WorkspacesController < InheritedResources::Base
private
def permitted_params
params.permit(:workspace => [:name, :owner_id])
end
end
raises ActiveModel::ForbiddenAttributesError exception.
the same problem with following code
def permitted_params
params.permit(:name, :owner_id)
end
Whats wrong with this code?
PS: i've tried following protip http://blog.josemarluedke.com/posts/inherited-resources-with-rails-4-and-strong-parameters but with 4.0rc1 it doesn't work :(