Top "Strong-parameters" questions

Strong Parameters requires whitelisting of Action Controller parameters by default.

Strong parameters with Rails and Devise

I am using the rails 4.0 branch of devise along with ruby 2.0.0p0 and Rails 4.0.0.beta1. This is the kind of …

ruby-on-rails devise strong-parameters
How to get ActiveAdmin to work with Strong Parameters?

Update: this question was asked before there was a solution for it already in ActiveAdmin. As Joseph states, the ActiveAdmin …

ruby-on-rails ruby-on-rails-3.2 activeadmin strong-parameters
How to specify devise_parameter_sanitizer for edit action?

I've added Devise to my Rails 4 application, and successfully added username etc. to my User model. Furthermore, I'm able to …

devise ruby-on-rails-4 strong-parameters
Trying to get a POST to return 400 bad request

I have a create method that builds a new model through an association and I was expecting it to return …

ruby-on-rails-4 strong-parameters
How should I use rails and simple_form for nested resources?

I'm trying to create one resource with another nested resource at the same time. I'm using Rails4 and simple_form 3.0.0…

ruby-on-rails simple-form nested-attributes fields-for strong-parameters
Devise and Strong Parameters

I would like to know how to integrate both of this gems(devise + Strong Parameters), since strong params will likely …

ruby-on-rails ruby ruby-on-rails-3 devise strong-parameters
Rails - Strong parameters with empty arrays

I'm sending an array of association ids, say foo_ids to my controller. To permit an array of values, I …

ruby-on-rails strong-parameters
Rails 4.0 with Devise. Nested attributes Unpermited parameters

I am working on a web-app using Devise and Rails 4. I have a User model which I have extended with 2 …

ruby-on-rails devise nested-forms nested-attributes strong-parameters
Why Strong Params contains permitted: false

I put in a binding.pry at the top of my controller's update action. Once at that break point, I …

ruby-on-rails ruby strong-parameters
Rails 5. Strong params require not used if one permit key is set

I am using Rails 5 to create a JSON Api. My controller uses strong parameters with one require attribute like this: …

ruby-on-rails ruby strong-parameters rails-api ruby-on-rails-5