Regarding Ivan's problem -
custom sidebar content in layouts, here is a solution I found on the
Agile Development with
Ruby on Rails, Section 22.9, Passing Data to Layouts, Page 508:
The same mechanism that lets you use yield :layout to embed the rendering of a
template into the layout also allows you to generate arbitrary content
in a template, which you can then embed in any template.
For example, different templates may need to add their own
template-specific items to the standard page sidebar. We'll use the content_for mechanism in those templates to
define content and then use yield in the layout to embed this
content into the sidebar.
Monthly Meetings: Starting in 2014, we meet the third Thursday of every month.
Additional Meetings: Meet as scheduled and announced.
(Brought to you by the Robert Half Technology (www.rht.com), Apress Books (www.apress.com), JetBrains (www.jetbrains.com/ruby/index.html), Balsamiq Mockups (www.balsamiq.com), O'Reilly Press (www.oreilly.com), and CodeSchool (www.codeschool.com).