Displaying 1 result from an estimated 1 matches for "groups_area".
2007 Jul 04
0
HOW I: Wrap content sections using blocks and then nest them using lambdas
...content_for :left do %>
<!-- Define the content to pass to the view helper -->
<% content = lambda do %>
<!-- main content here -->
<% end %>
<!-- Determine which view helper to pass the block to -->
<% if @group %>
<% groups_area(@group) { content.call } %>
<% else %>
<% conversations_area(@forum,@group) { content.call } %>
<% end %>
<% end %>
So far this is working great. Any ideas on how to improve it? Bonus
question:
Why don''t here documents work in the helper fi...