This project is archived and is in readonly mode.

#3781 ✓committed
Mikel Lindsaar

layout ignores a proc

Reported by Mikel Lindsaar | January 24th, 2010 @ 10:34 AM | in 3.0.2

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.

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>

Pages