HOWTO: Getting a sidebar in Merb
In several of my pages, I have a side-bar menu-y thingie. I didn’t want to have to rewrite a controller-specific layout each time, but luckily Merb supports something similar to Rails’s content_for block that I wrote about earlier. In Merb, its done using throw_content(API) and catch_content(API).
Put the catch_content into your application layout view. You probably [...]
Tagged howto, Merb, Ruby