Displaying 1 result from an estimated 1 matches for "list_photos".
2006 Jan 20
4
[newbie]how to use link_to to link to another controller?
...uld pop up in the menu using in the application controller
def initialize
@menu_categories=Category.find_all
end
Now, if I iterate over these menu categories in the application template
<% for menu_category in @menu_categories %>
<% link_to menu_category.category, :action =>''list_photos'',:id
=>menu_category%></a><br />
<% end %>
I get the following links:
http://192.168.1.100:8000/categories/list_photos/3 (when in categories
conroller)
http://192.168.1.100:8000/photos/list_photos/3 (when in photos controller)
What I want however is to have the se...