On Oct 15, 9:27 am, Sijo Kg <[EMAIL PROTECTED]> wrote:
> @problem.save! So suppose an error happens I have redirected to the
> same view which contains error_messages ..But my problem is I dont ge
> the error messages when redirect but get it when render the same
>
> redirect_to :action => 'create_ui' #This dies not give error messages
Because the state of the invalid object is lost when you do a redirect
(which is why people typically don't do a redirect)
Fred
> for problem
> render :action => 'create_ui' #This gives error messages for problem
> Why this happens ?Please help
>
> Sijo
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---