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, Jul 20, 2011 at 9:16 PM, Leonel *.* <li...@ruby-forum.com> wrote:

> 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 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.
>
>


-- 
Jazmin

-- 
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