Rails 3, menu in layout
i have some controllers, i want to put categories names into layout, l开发者_StackOverflow中文版ike menu, what i could see in all pages. Is there a easy sollution to do this?
Use : render :layout => 'yourcustomlayout' in your specific action.
Use general layout for whole application. You can specify one layout for an application and even override it wherever required.
See here for details and near exact example for your case.
精彩评论