Re: Validation without ActiveRecord

Carl Youngblood
Sat, 23 Jul 2005 21:44:32 -0000

On 7/22/05, Wilson <defiler-ifvz4xmYPRU@public.gmane.org>
wrote:
> text_field requires that the first parameter be the string
> representation of an instance variable name.
> In your controller, you should call the "request" method and make
an
> instance variable called "@request" with it.
> Then you can use <%= text_field ''request'',
''fullname'' %>
>
> (You may want to rename it, as well. The error message implies that
> there''s a potential name conflict.)

Okay, I''m no longer getting an error, but now how do I make it
automatically set up a flash message with the validation errors and
highlight the problem fields?

Thanks,
Carl