Forum: Ruby on Rails validate a form NOT connected to a model

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5fde02269fa53e53a38a6cc286ca6bd0?d=identicon&s=25 Ben Wyrosdick (Guest)
on 2006-05-26 02:54
(Received via mailing list)
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?
8c8eac61d882aee19501fe4c010628b3?d=identicon&s=25 Thom (Guest)
on 2006-10-22 22:48
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
561ded75345e3657835b48269a51bb2f?d=identicon&s=25 unknown (Guest)
on 2006-10-23 00:59
(Received via mailing list)
You could try using activespec to make some spec objects for your
forms, and use this to validate the data.

http://activespec.rubyforge.org
43ec5998360a0cc21b51afef1781e9c0?d=identicon&s=25 Daniel Higginbotham (danieldaniel)
on 2006-10-23 01:15
(Received via mailing list)
http://www.bphogan.com/learn/pdf/tableless_contact_form.pdf provides a
description which will help, I think
This topic is locked and can not be replied to.