Displaying 1 result from an estimated 1 matches for "col_left_partial".
2007 Jun 21
1
render :partial => :url - is it possible?
...ed in several parts of the site.
The sidebar is part of the layout (I''m using the nested_layout plugin),
rather than the page view.
# /app/layouts/layout_3_col.rhtml
<div class=''col_left col''><div class=''inner''>
<%= render :partial => @col_left_partial || ''col_left'' %>
</div></div>
However this means I need to generate the data for the sidebar
components within each model, and not more-cleanly in a separate model
for the sidebar component itself.
What I am after is a system where I could create a separate model...