This project is archived and is in readonly mode.

#4608 ✓wontfix
Neeraj Singh

layout should accept a symbol as layout name

Reported by Neeraj Singh | May 15th, 2010 @ 06:31 PM

class BankController < ActionController::Base
  layout "bank_standard" # works
  layout :bank_standard  # FAILS
end

layout should accept both string and symbol as layout name.

In case symbol is specified as layout name then first a method call should be done to get layout name. However if no such method exists then apply the layout specified as symbol.

Comments and changes to this ticket

Create your profile

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

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages