Rails layout per controller -


i have home controller , news controller. want both of these controller use application.html.erb layout file , in addition that, home, use home layout , news, use news layout. , render specific view. possible in rails?

in other words, don't want specify layout per view, per controller, both inheriting application.html.erb layout.

what want remove redundancy of adding top navigation bar , including javascript/css in every single layout file. i'd rather include in 1 file, , controller specific layout layout, , render view.

thanks

i think want nested layout. rather repeat here, i'll direct http://guides.rubyonrails.org/layouts_and_rendering.html#using-nested-layouts


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -