yehweh
1
Hi
I’m a noob, so, please bare with me. I tried to find it online but could
not. Can i call a controller from inside a controller?
class UsersController < ApplicationController
def index
do soem thing
redirect_to :action => new_controller
end
Thanks
yehweh
2
Hi Sushruth,
What I think your looking for is to redirect to another controller.
redirect_to :controller => ‘controller_name’, :action =>‘action’
Hope this helps…
Cheers
yehweh
3
liquid wrote:
Hi Sushruth,
What I think your looking for is to redirect to another controller.
redirect_to :controller => ‘controller_name’, :action =>‘action’
Hope this helps…
Cheers
Thanks very much, I wors now ![:slight_smile: :slight_smile:](/images/emoji/twitter/slight_smile.png?v=6)