On 7/17/07, bradigan <bradmadigan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I have a form and a model with some validation.
> /event/new/
>
> When I just click an empty form (or fill in a few fields) I do get my
> validation error no problem.
> However, if I click the link at the top of the page that just takes me
> to the same
> /event/new
> page without any post etc,
> The Flash error still displays in my layout.
Hi Brad,
I think the controller code would be more relevant here.
Storing stuff in the flash means it''ll be there for the next request.
You probably only want to store stuff there if you respond with a
redirect. Perhaps you''re storing your errors in flash, and just doing
a render instead?
Regards,
George.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---