Nested parameters?
Closed this issue · 1 comments
danlo commented
Is there a way to validate nested parameters?
Ex:
params[:user][:id]
Thank you!
nicolasblanco commented
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.