Newbie question. How do I link from a view in one controller to a view in another controller?
Cheers
Newbie question. How do I link from a view in one controller to a view in another controller?
Cheers
link_to "some good link", :controller => 'other_controller', :action => 'some_action'
If you have your routes setup w/ map.resources, you'll have a number of helpers for that as well:
link_to "some good link", other_models_path link_to "some good link", new_other_model_path etc.
Good luck
redirect_to :controller => controller, :action => action
Michael