I would suggest using render instead of redirect. <%= render :partial => "controller2/action2" %>
Checkout this page for more info: http://api.rubyonrails.org/classes/ActionView/Partials.html On Fri, Dec 11, 2009 at 9:15 AM, pankaj <pankajbhage...@gmail.com> wrote: > Hi, > Lets assume we have an url, /controller1/action1. > In the before filter, under certain conditions, I want to route it > to /controller2/action2. without changing the url at the client side > ie I donot want to use redirect. Please help. > > Regards, > Pankaj > > -- > > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- Andrei Erdoss -- 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-t...@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.