开发者

Rails 3, menu in layout

开发者 https://www.devze.com 2023-02-13 00:48 出处:网络
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 => \'

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

精彩评论

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

关注公众号