since your text field tag isn't part of the model, you could instantiate the object with the value from the tag and then call is_valid and check the errors variable if you want the message. else you'll have to write your own validation methods
On Mar 17, 3:15 pm, Heinz Strunk <[email protected]> wrote: > But the text_field_tag has nothing to do with the @record so it wouldn't > help if I was checking if the @record is valid, right? > > tony wrote: > > you could also [email protected]_valid? > > > which will validate w/o saving > > > On Mar 17, 11:00 am, Frederick Cheung <[email protected]> > > -- > Posted viahttp://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 [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 -~----------~----~----~----~------~----~------~--~---

