This project is archived and is in readonly mode.
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
-
Neeraj Singh May 15th, 2010 @ 06:40 PM
- Tag changed from action_controller, layout, rails3 to action_controller, layout, patch, rails3
Attached is a patch against rails3 edge.
-
José Valim May 15th, 2010 @ 08:20 PM
- State changed from new to wontfix
- Not all cases where we take a string, we need to take symbol with exactly the same semantics.
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>