Zack C. wrote:
If you need to repeat a content block in numerous views I would
recommend simply creating another layout for those actions to use.
Hope this helps,
This was the path I was taking but found that there was a lot of
repeated code as each controller only required a different left hand
Ideally I would like to be able to stack layouts, which unfortunately it
not a feature I am aware of. I have taken this opportunity to learn more
about the plugins and am seeing if there is any way I could augment the
ActionController to give an easily reversed temporary solution.
I’m still learning ruby so get a bit lost when trying to follow some of
the rails ActionController and ActionView relationships.
All I really need is to pass the name of a partial to the layout so that
it can insert it in the left hand column. Unless a plugin exists that
does something similar?
It just seems such a waste to duplicate a bunch of layouts just for the
difference of a single section. I suppose I could pass in the menu via a
partial using the content_for helper in each view but it’s similarly
anti-DRY given multiple actions for a controller.