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 ignores a proc

#3781

On Rails edge, doing the following does not work:

class PostsController < ApplicationController
  layout Proc.new{ |c| 'custom_layout' }
end

Calling any action renders with the 'posts' layout.

Reported by Mikel Lindsaar · January 24th, 2010 @ 10:34 AM

State: committed
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: High

Activity

  1. Mikel Lindsaar
    Mikel Lindsaar
    • Assigned user changed from Yehuda Katz (wycats) to José Valim

    January 24th, 2010 @ 10:35 AM

  2. José Valim
    José Valim
    • Assigned user changed from José Valim to Yehuda Katz (wycats)

    January 24th, 2010 @ 10:36 AM

  3. Łukasz Strzałkowski
    Łukasz Strzałkowski

    It works for me, tried on Rails 3.0.0.beta

    February 23rd, 2010 @ 08:44 PM

  4. José Valim
    José Valim
    • State changed from new to committed
    • Assigned user changed from Yehuda Katz (wycats) to José Valim

    Yup, I fixed and forgot to close the ticket.

    February 23rd, 2010 @ 08:48 PM

  5. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to High

    October 15th, 2010 @ 11:01 PM