#492 new

Can only declare one layout per controller

Reported by etlund | September 29th, 2011 @ 04:42 PM

Section 4.4 Additional Layout Options shows an example using multiple layout methods in a controller:

class EventController < ActionController::Base
  layout "events", :only => [:index, :new]
  layout "global", :except => [:index, :new]

However, you can only specify one global layout per controller. The second layout call overrides the first.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket