[Rails] @content_for_sidebar?

Dan Sketcher dansketcher at gmail.com
Mon Feb 27 23:42:18 GMT 2006


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


On 2/28/06, Dean <dean at deanandadie.net> wrote:
> 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 --
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


More information about the Rails mailing list