开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜