aren''t you redirecting request when you detect error? if yes, use
render
instead, because error are empty after redirection.
> I hve written validations to check the incoming data. Also in the
> view
> i am saying:
> <%= error_messages_for "model_name_here" %>.
> Now when i am trying to insert invalid data, it is not getting stored
> in
> the model(which is gud) but it is not ahowing any error messages on the
> view
> rendered..
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---