Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

layout should accept a symbol as layout name

#4608
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.

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

State: wontfix
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Neeraj Singh
    Neeraj Singh
    • Tag changed from action_controller, layout, rails3 to action_controller, layout, patch, rails3

    Attached is a patch against rails3 edge.

    May 15th, 2010 @ 06:40 PM

  2. Senthil
    Senthil

    +1

    patch has tests
    all tests pass

    May 15th, 2010 @ 06:56 PM

  3. José Valim
    José Valim
    • State changed from new to wontfix
    1. Not all cases where we take a string, we need to take symbol with exactly the same semantics.

    May 15th, 2010 @ 08:20 PM