Re: Validation without ActiveRecord

Carl Youngblood
Sat, 23 Jul 2005 21:56:39 -0000

Okay, now I have another problem with my validations.  Every time I
submit the form it adds more errors to the list of validation errors.
The list has tons of duplicate errors.  Any ideas as to what might be
wrong?  I''m assuming that what it should do instead is just keep
reloading the form with the same errors listed.

Thanks,

Carl

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