> Ok so not sure if this is possible but it would help out a lot if it > is. I am trying to put this validation on one of my forms > > validates_presence_of :name, :state > > however I only need this validation to run when they edit this form, > not when they create it. is this possible, any suggestions would be > greatly appreciated. thanks in advance.
Check the docs... it's in there. # on - Specifies when this validation is active (default is :save, other options :create, :update). validates_presence_of :name, :state, :on => :update -philip --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

