nicolasblanco/rails_param

Nested parameters?

Closed this issue · 1 comments

Is there a way to validate nested parameters?

Ex:

   params[:user][:id] 

Thank you!

To validate nested params, please use ActiveModel::Model and classical Rails validations like validates_presence_of, etc (http://api.rubyonrails.org/classes/ActiveModel/Model.html) as I wrote on the introduction of the README.