permitted_params - rails4 and inherited_resources
inherited-resources, ruby-on-rails, ruby-on-rails-4
Solution
I had the same problem.
You need to put permitted_params method as public method in your controller class. It's NOT a private method.
I hope this help.
Problem
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 :(