On Fri, Mar 27, 2009 at 4:05 PM, Brandon Olivares <[email protected]> wrote: > I'm trying to create a simple contact form. It might use the database later > for storing the messages, but not yet, I don't think. However, I'd still > like to be able to validate the fields easily, like you would with > ActiveRecord. > > How can I do this? I'm new to rails so really don't know where to start.
You can validate an ActiveRecord object using valid?. http://api.rubyonrails.org/classes/ActiveResource/Validations.html#M000832 This will ensure any model validation you include are ran. -- Greg Donald http://destiney.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 [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 -~----------~----~----~----~------~----~------~--~---

