I have an admin section in my rails 3 app. where I want to use a
different layout than the main layouts/application.html.haml layout.
Here is the snippet of the admin_controller.rb:

class AdminController < ApplicationController

  current_section :admin
  layout :admin
   .
   .
end

Here are the contents of the layouts/admin.html.haml file:

- content_for :secondary_nav do

  = navigation :second_level_admin

= render :file => "layouts/application"

Rails 3 is ignoring the admin layout all-together.  Rails 2.3.8 doesn't.
Is there an existing bug in Rails 3?

Bharat
-- 
Posted via http://www.ruby-forum.com/.

-- 
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