Displaying 2 results from an estimated 2 matches for "left_sidebar_for_layout".
2006 Mar 17
2
How to let the layout be more OO?
I am confused about the @content_for_layout.''cause it will display all
the views in the layout.Do I have any methods to let the layout be more
OO? I mean that for example,the app currently have more than one views
to be displayed,but only some of them to be displayed at the same time
at different <div></div> units. I hope there exists a kind of way that:
<%= if
2006 May 25
0
Double Render Error...
I''ve been fighting with a Double Render Error.
I have some sidebar partials that I render to strings in my
application controller''s before_filter:
@left_sidebar_for_layout = render_to_string(:partial => ''shared/left_sidebar'')
Then in my application layout, I simply add them as a string, like I
would @content_for_layout
This normally works fine.
However, when I put them in via an after_filter (or when using them in
a before_filter with the logi...