search for: left_sidebar

Displaying 3 results from an estimated 3 matches for "left_sidebar".

2006 Mar 12
0
Unexpected attribute modification
Hi all, I''m trying to do multiple render_to_string() calls in a method call, and I''m getting attributes being modified in unexpected ways. @left_sidebar = render_to_string( :partial ..... ) puts @left_sidebar.id (-> 123456) @right_sidebar = render_to_string( :partial .....) puts @left_sidebar.id (-> 234567 WTF!?!?!) puts @right_sidebar.id (-> 345678) How is @left_sidebar being modified by @right_sidebar= ? If I do this:...
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 wi...