Forum: Ruby on Rails @content_for_sidebar?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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
_sidebar.rhtml, views/layouts/sidebar.rhtml and

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

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
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! :)

This topic is locked and can not be replied to.