Forum: Ruby on Rails @content_for_sidebar?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dean (Guest)
on 2006-02-28 01:19
(Received via mailing list)
Okay, I see this instance variable places, but I can not determine if it
is real
or where the content comes from.  I've tried
views/<controller>/sidebar.rhtml,
_sidebar.rhtml, views/layouts/sidebar.rhtml and
views/layouts/_sidebar.rhtml.

Does this actually exist?  What's the Rails Way to make a good sidebar?

http://www.google.com/search?q=content_for_sidebar

Thanks,
--Dean
--
Take your time, take your chances
[3278.7 km, 273.4] Apparent Rennerian
--------------------------------------------------------------------------------
It matters not how strait the gate, / How charged with punishments the
scroll,
I am the master of my fate: / I am the captain of my soul.        --
Invictus --
                                                           -- William E
Henley --
Dan S. (Guest)
on 2006-02-28 01:44
(Received via mailing list)
Hey Dean,

Check out the docs on "content_for()" in the
ActionView::Helpers::CaptureHelper module.

Using this seems like an appropriate way to add a dynamic sidebar, but
perhaps a partial would be better for more static content. It really
depends on you! :)

HTH,
Dan
This topic is locked and can not be replied to.