Actually you'd want this...

application.html.erb

<div id='wrapper'>
  <div id='sidebar'>
    <%= yield :sidebar %>
  </div>
  <div id='content'>
    <%= yield %>
  </div>
</div>


show.html.erb

Anything you type here will show in the content div
<% content_for :sidebar do %>
  this will show up in the sidebar div
<% end %>


On Apr 16, 12:06 am, Freddy Andersen <[email protected]> wrote:
> or
>
> <div id='wrapper'>
>   <div id='side'>
>     <%= content_for(:side) %>
>   </div>
>   <div id='content'>
>     <%= yield %>
>   </div>
> </div>
>
> Then use css to float the side and content to the left with some
> with...
>
> Was that what you wanted?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to