Re: [Rails] Re: How to bypass required field in form

2011-07-20 Thread Jazmin
Validations have the option :on which specifies when the validation is active, the default is :save, but other options are :create, :update so you can do something like this: validates_presence_of :field, :on =>:create #Validations will not be triggered on update. Give it a try.. Jazmin On Wed,

[Rails] Re: How to bypass required field in form

2011-07-20 Thread Leonel *.*
Thanks Bob. I did hash the password and added some salt. I based myself on the railscast "Authentication from Scratch" and also on a Rails book I have. The conditional validations railscast was VERY helpful, thanks Tom! -- Posted via http://www.ruby-forum.com/. -- You received this message b

[Rails] Re: How to bypass required field in form

2011-07-20 Thread Bob Proulx
Leonel *.* wrote: > How can I make the Update User form work without it doing anything to > the password? > ...problem solved?... > Awesome! XD It seems to me that you might be storing passwords in the database in the clear. That rings alarm bells! Instead store a hash of the password with a sal

[Rails] Re: How to bypass required field in form

2011-07-20 Thread Leonel *.*
Awesome! XD -- 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-tal

[Rails] Re: How to bypass required field in form

2011-07-20 Thread Leonel *.*
Aaahhrrgg! If I try to update the user attributes using irb, it doesn't do it either. Please help! -- 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 rubyonrai