Displaying 3 results from an estimated 3 matches for "right_sidebar".
2006 Sep 29
2
ApplicationHelper is not a parent of SomeHelper?
i have:
# file application_helper.rb
module ApplicationHelper
def load_components
@right_sidebar = ''some stuffs''
end
end
# file user_public/blog_helper.rb
module UserPublic::BlogHelper
def load_components
ApplicationHelper.load_components
@right_sidebar += ''{blog archive}''
end
end
the problem is, i want to load the ApplicationHelper.load_comp...
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:
left = render_to_string(...)
right = render_to_string(...)
@left_sidebar = left
@right_...
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