Top "Strong-parameters" questions

Strong Parameters requires whitelisting of Action Controller parameters by default.

how to permit an array with strong parameters

I have a functioning Rails 3 app that uses has_many :through associations which is not, as I remake it as …

ruby-on-rails arrays strong-parameters
Rails 4 - Strong Parameters - Nested Objects

I've got a pretty simple question. But haven't found a solution so far. So here's the JSON string I send …

ruby-on-rails ruby-on-rails-4 nested-attributes strong-parameters
Rails 4 Strong parameters : permit all attributes?

I'm building a web app with Rails 4 strong parameters. When building the admin back office controllers, I wonder what is …

ruby-on-rails ruby-on-rails-3 strong-parameters
Rails 4: Insert Attribute Into Params

In Rails 3, it was possible to insert an attribute into params like so: params[:post][:user_id] = current_user.id …

ruby-on-rails strong-parameters
Rails4: How to permit a hash with dynamic keys in params?

I make a http put request with following parameters: {"post"=>{"files"=>{"file1"=>"file_content_1", "file2"=>"file_…

ruby-on-rails strong-parameters
Rails 4.0 Strong Parameters nested attributes with a key that points to a hash

I was playing around with Rails 4.x beta and trying to get nested attributes working with carrierwave. Not sure if …

ruby-on-rails ruby ruby-on-rails-4 strong-parameters
Rails 4 Unpermitted Parameters for Array

I have an array field in my model and I'm attempting to update it. My strong parameter method is below …

ruby-on-rails ruby ruby-on-rails-4 strong-parameters
strong parameters permit all attributes for nested attributes

Is there a way in strong parameters to permit all attributes of a nested_attributes model? Here is a sample …

ruby-on-rails ruby ruby-on-rails-3.2 ruby-on-rails-4 strong-parameters
How to use Rails 4 strong parameters with has_many :through association?

I'm having trouble getting a has_many :through association working with Rails 4's strong parameters. I have a model called …

activerecord many-to-many ruby-on-rails-4 strong-parameters