Is there any way to validate a form that isn''t connected to a model. I have a form that connects to a controller action and I want to validate the inputs on the form like I would with the validates_ATTRIBUTE_of property on a model. Is there any way to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060526/3a1e72ca/attachment.html
Ben Wyrosdick wrote:> Is there any way to validate a form that isn''t connected to a model. I > have > a form that connects to a controller action and I want to validate the > inputs on the form like I would with the validates_ATTRIBUTE_of property > on > a model. Is there any way to do this?Did you ever get this figured out? I have the same issue. Thanks in Advance Thom -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
ljredpath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Oct-22 22:58 UTC
Re: validate a form NOT connected to a model
You could try using activespec to make some spec objects for your forms, and use this to validate the data. http://activespec.rubyforge.org --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
http://www.bphogan.com/learn/pdf/tableless_contact_form.pdf provides a description which will help, I think On Sunday 22 October 2006 10:48 am, Thom wrote:> Ben Wyrosdick wrote: > > Is there any way to validate a form that isn''t connected to a model. I > > have > > a form that connects to a controller action and I want to validate the > > inputs on the form like I would with the validates_ATTRIBUTE_of property > > on > > a model. Is there any way to do this? > > Did you ever get this figured out? I have the same issue. > > > Thanks in Advance > Thom--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---