Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Rails 4 Strong parameter

Rails 4 has many new features, and Strong parameter is one of them. Strong parameter allows us to choose attributes that can be whitelisted for mass assignment. In rails 3 we were doing this by listing accessible attributes in the model. But in r...

Strong Parameters in Rails

Strong Parameters in Rails Strong parameters are used to prevent the action controller parameters that are used in Active Model Mass Assignment. If you want to use them, you need to white-list them. It is basically used as a security for sensiti...

attr_accessible in Rails 4

Before going into the details of attr_accessible, the best thing would be to understand why it was needed. It was basically needed to avoid the Mass-assignment Attack. For that we need to know about Mass-assignment :- Mass-assignmen...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: