Re: Validation without ActiveRecord

Carl Youngblood
Sat, 23 Jul 2005 21:48:19 -0000

Never mind, I think I figured it out.  Sorry to trouble the list.

On 7/23/05, Carl Youngblood
<carl.youngblood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> 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?