You really need to give us more information to help. If you want just the layout from the other action, you can use render. However, render will not execute the code from the controller's action method; it will only render the template. If you want to execute the code and truly redirect, I think you are stuck changing the url. Why do you need to do this? Let us know a little more of the situation and we might be able to give you a better solution.
Good luck, Andrew On Dec 10, 11:15 pm, pankaj <[email protected]> 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 [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.

