Top "Strong-parameters" questions

Strong Parameters requires whitelisting of Action Controller parameters by default.

Rails 4 strong parameters param not found error with carrierwave

I'm having trouble with carrierwave and rails 4 strong parameters. I have a very simple model with a carrier wave upload …

ruby-on-rails carrierwave ruby-on-rails-4 strong-parameters
Rails 4 Strong Parameters - Handling Missing Model Params Hash

Models: Posts and Users Post belongs_to :user User has_many :posts Simple. Assuming a few users exist, we visit …

ruby-on-rails-4 strong-parameters
Rails 4 has_one association form not building

I need some pointers on how Rails 4 works with has_one and belongs_to association. My form doesn't save the …

ruby-on-rails ruby-on-rails-4 form-for actioncontroller strong-parameters
In Rails 4 disable Strong Parameters by default

Is there anyway to disable using strong params? And I know it's a security vulnerability but I really don't need …

ruby-on-rails ruby-on-rails-4 strong-parameters
Rails -- how to populate parent object id using nested attributes for child object and strong parameters?

I've got a situation much like is presented in Railscast 196-197: Nested Model Form. However, I've encountered a conflict between …

ruby-on-rails strong-parameters
strong parameters not accepting array

I have this in my view which is a multiselect checkbox Model class User < ActiveRecord::Base has_many :user_…

ruby-on-rails ruby ruby-on-rails-4 strong-parameters
How to make an optional strong parameters key but filter nested params?

I have this in my controller: params.require(:item).permit! Let's assume this rspec spec, which works as expected: put :…

ruby ruby-on-rails-4 strong-parameters
Rails 4 strong parameters without required parameters

I'm using Rails 4 and I don't know what is the best way to use strong parameters without required parameters. So, …

ruby-on-rails ruby ruby-on-rails-4 strong-parameters
strong parameter and json input rails 4

I am trying to save data through JSON String in which I have nested associated attributes. I do not want …

ruby-on-rails json ruby-on-rails-4 nested-attributes strong-parameters
Rails 4 strong parameters failing when creating instances in rails console

Probably doing something stupid here, but here's my basic cookie cutter class: class League < ActiveRecord::Base private def league_…

ruby-on-rails ruby ruby-on-rails-4 strong-parameters