you could also [email protected]_valid? which will validate w/o saving
On Mar 17, 11:00 am, Frederick Cheung <[email protected]> wrote: > On Mar 17, 5:24 pm, Heinz Strunk <[email protected]> > wrote:> Hey people, > > > I was wondering whether it's possible to validate a text_field_tag which > > has nothing to do with the actual object being created? > > validations are by definition a model centric thing. However there's > nothing stopping you doing > if not_good(params[:some_text:]) > ... > else > @record.save > end > > Fred > > > Thanks > > -- > > 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 -~----------~----~----~----~------~----~------~--~---

