Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3: client_side_validations gem and devise password validations

I've got the client_side_validations gem working really great on my forms. I'm using Devise for my users model and when I go to the edit_user_registration form, validations are thrown up for everything except the :current_password, :password, and :password_confirmation fields.

Fort instance is I leave the email blank, the validation pops up right when I tab out of the field. However, if I leave the current_password field blank and tab out of it nothing happen, then when I submit the form I get the error "1 error prohibited this user from being saved: password can't be blank"

Thanks for any help

http://pastie.org/1907464

like image 360
trying_hal9000 Avatar asked May 16 '11 01:05

trying_hal9000


1 Answers

The master branch now supports this format. Point your Gemfile to it and you should be good

like image 113
bcardarella Avatar answered Oct 06 '22 01:10

bcardarella