Ruby on Rails Friday, September 28, 2012

Hi,

I was writing some tests when I discovered (god bless testing...) that my User model, that use Devise, doesn't validate the presence of the :password_confirmation field.

I was expecting that adding :validatable to the Devise option would include the presence validation for this field too.

Could any one please explain this behaviour?

There is a better solution than simply adding that field to User model validation?

thank you.

bye,

enricostn

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/J_r2Hs92FgsJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment