hi all,
thanks all for the reply.
regding render :action , it will not execute the action defined in the controller, just it will render the :action.rhtml. one alternative is that i can call the action inside some other action and use render :action
for example
def create
# do something
end
def create_new
create
render :action => 'create'
end
my problem is that i want to execute action defined in controller2 from action defined in
controller1.i.e.both actions are not in the same controller. anybody have any ideas?
and regding map.connect, say example
map.connect 'my_controller/create', :controller => 'my_controller_new', :action => 'create_new'
if there is a controller 'my_controller' and action 'create' available it will not execute
my_controller_new.create_new.
using map.connect, my_controller_new.create_new is executed only if there is no my_controller and create action.
thanks,
dhanasekaran