Hey Campers,
Here's a little technique you can use to support multiple layouts within a
Camping app.
def layout
@layout ||= 'default'
send("[EMAIL PROTECTED]") { yield }
end
The minimum you have to do after this is define a *default_layout*, but (as
you can hopefully see) you may define any number of arbitrary layouts to
wrap your content in.
Just set [EMAIL PROTECTED] in your controllers, and when it comes time to
render a
view, be sure a layout w/ the name "[EMAIL PROTECTED]" exists.
--beppu
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list