14 Jul '12, 3pm

@robotmay my guess is you can do something along the lines of

To find the current layout, Rails first looks for a file in app/views/layouts with the same base name as the controller. For example, rendering actions from the PhotosController class will use app/views/layouts/photos.html.erb (or app/views/layouts/photos.builder ). If there is no such controller-specific layout, Rails will use app/views/layouts/application.html.erb or app/views/layouts/application.builder . If there is no .erb layout, Rails will use a .builder layout if one exists. Rails also provides several ways to more precisely assign specific layouts to individual controllers and actions.

Full article: http://guides.rubyonrails.org/layouts_and_rendering.html#...

Tweets

Ruby on Rails:

railsapi.com 23 Jul '12, 6am

Ruby on Rails Guides (edge) - #rails #ruby

edgeguides.rubyonrails.org 23 Jul '12, 10am

Ruby on Rails Guides (580fa0c) These are Edge Guides , based on the current master branch. If you are looking for the ones...

@fladdict つ Fragment Caching Railsでテンプレートを2段階にす...

guides.rubyonrails.org 14 Jul '12, 7pm

class ProductSweeper < ActionController::Caching::Sweeper observe Product # This sweeper is going to keep an eye on the Pr...

What’s New in Edge Rails #29: Week of July 9 – ...

afreshcup.com 16 Jul '12, 12pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...