Try using the :locals hash that can be passed with render to the view, works fine for me.
On Jun 1, 11:22 am, Frederick Cheung <frederick.che...@gmail.com> wrote: > On Jun 1, 1:58 am, Herman <herman...@gmail.com> wrote:> 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. > > render just renders a template - you can't change the query string > (without redirecting) because the browser shows the url it accessed. > You could change your form to a get form if you wanted to (although > that would put all the form parameters in the url) > > Fred> 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.