Displaying 1 result from an estimated 1 matches for "conversations_area".
2007 Jul 04
0
HOW I: Wrap content sections using blocks and then nest them using lambdas
...his one is a bit more complex... to factor out all the markup for different
sections of the site I have a bunch of view helpers (thanks to Ryan Bates:
http://railscasts.com/episodes/40) that are setup to take blocks. Most of
my views start off like this:
<% content_for :left do %>
<% conversations_area do %>
<!-- main content here -->
<% end %>
<% end %>
This makes is tremendously easy to DRY up repeated code that doesn''t really
warrant its own layout bit is still fairly consistent.
To complicate this, however, we have different sections of the site that...