Ruby on Rails Tuesday, May 31, 2011

Hi all,

In one of my create action in the controller, I am catching a error
and trying to show errors on the same page. It was all good when I
called render action => 'new'. However, I also wanted to append a
query string for consistence purposes. How do I do that with render?
For now, I can only call redirect_to and put the error in the flash
variable which doesn't seems to be as clean of a solution.

Thanks in advance.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment