Hi
In the view I have
<%= error_messages_for :problem%>
In the model I have validations. and in controller inside transaction
I have
@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
for problem
render :action => 'create_ui' #This gives error messages for problem
Why this happens ?Please help
Sijo
--
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 [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
-~----------~----~----~----~------~----~------~--~---