Forum: Ruby on Rails content_for and view, controller, and default hierarchy

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.
18607dc7098d879b13f5ed22a70c4302?d=identicon&s=25 Eric Milford (ericindc)
on 2009-02-19 05:49
(Received via mailing list)
I am trying to accomplish a hierarchy for my sidebar content using
yield :sidebar and content_for :sidebar.  What is the best way to set
up the content_for hierarchy such that the following pseudo code is

if :sidebar code in View
   display View :sidebar
elsif :sidebar code in Controller
  display Controller :sidebar
  display Default :sidebar

Thanks in advance.
This topic is locked and can not be replied to.