search for: menu_category

Displaying 2 results from an estimated 2 matches for "menu_category".

2006 Jan 20
4
[newbie]how to use link_to to link to another controller?
...e. I managed to get a global @menu_categories object that keeps track of all the categories that should 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...
2006 Jul 07
9
Search on data accross many tables, linked by belongs_to
I am using Ferret and acts_as_ferret, as my search back-end for my Rails project. I have a question about using acts_as_ferret on a main table that is linked to other tables by foreign keys. Is there a way to include the information linked by the belongs_to keyword in the search results ? As an example, let''s say I have a main table ''posts'':