[Rails] Re: How to update user model attributes and bypass a presence_of validation?

2010-07-20 Thread Bob
There is also the :on option for validations. With combining :on with :if you could essentially set up several validations that are triggered by the specific pages. One validation to ensure presence_of :name, :email and :password :on = :create One validation to ensure presence_of :name :on =

[Rails] Re: How to update user model attributes and bypass a presence_of validation?

2010-07-20 Thread andrewperk
Thank you both Pepe and Bob. I appreciate it. Andrew On Jul 20, 1:22 pm, Bob rpell...@gmail.com wrote: There is also the :on option for validations.  With combining :on with :if you could essentially set up several validations that are triggered by the specific pages. One validation to

[Rails] Re: How to update user model attributes and bypass a presence_of validation?

2010-07-20 Thread Eric Hao
why not just use update_attribute ? -- 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-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: How to update user model attributes and bypass a presence_of validation?

2010-07-19 Thread pepe
Validations usually have an :if/:unless option. That might be helpful. You could, for example, condition the password and e-mail values to validate only if the name is present. On Jul 19, 2:33 pm, Andrew Perkins andrewp...@gmail.com wrote: Hello, I have a user model which stores a users name,