http://railscasts.com/episodes/41-conditional-validations

On Jul 20, 2011, at 22:59 , Leonel *.* wrote:

> I have an Update User page.
> 
> I created my own authentication from scratch based on one of the
> railscasts and other tutorials.
> 
> The user can update his first name, last name, email address, etc. I do
> not want the user to update his password, so I didn't include the
> password fields. Since in the User model I have validate_presence_of
> :password, whenever the user tries to update his profile, of course, he
> gets this error:
> 
> "Password should have between 6 to 12 characters"
> 
> How can I make the Update User form work without it doing anything to
> the password?
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz  www.lightgems.cz
===============================================================================

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to