1 2 # layout selector 3 def simple_page 4 @show_fader = true 5 return "application" 6 end 7 8 # layout selector 9 def complex_page 10 @show_fader = false 11 return "application" 12 end 13
// from within an individual page layout
1 2 layout :simple_page
// finally, from within layout:
1 2 show_fader: <%= @show_fader %>