This project is archived and is in readonly mode.
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
-
Mikel Lindsaar January 24th, 2010 @ 10:35 AM
- Assigned user changed from Yehuda Katz (wycats) to José Valim
-
José Valim January 24th, 2010 @ 10:36 AM
- Assigned user changed from José Valim to Yehuda Katz (wycats)
-
José Valim February 23rd, 2010 @ 08:48 PM
- 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.
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to High
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>