Displaying 1 result from an estimated 1 matches for "contents_for_layout".
Did you mean:
  content_for_layout
  
2006 Mar 10
1
Problem rendering components
...AccountsController that inherits from ApplicationController. 
In ApplicationController I define a generic layout. In this layout I 
render @title that is actually assigned in the AccountsController but 
has a default value in ApplicationController.
In the layout template, I also have the standard contents_for_layout and 
lastly, I have a render_component. The component called from the layout 
template also renders @title.
The problem I have is that when the requested view renders (e.g. 
/accounts/list), the @title defined in the layout template renders the 
correct value defined in AccountsController. However...