This project is archived and is in readonly mode.
Layout for does not accept objects as in the docs from Rails 2.3
Reported by Carlos Antonio da Silva | August 11th, 2010 @ 02:22 PM
Comments and changes to this ticket
-
Carlos Antonio da Silva August 11th, 2010 @ 02:25 PM
From the docs:
<%= render :layout => "my_layout" do |customer| %> Hello <%= customer.name %> <% end %> # The layout <html> <%= yield Struct.new(:name).new("David") %> </html>
This does not work as expected, the content inside the render block is not being generated.
By using yield without any param, the content is generated, but no variable is available. -
Repository August 11th, 2010 @ 02:26 PM
- State changed from new to resolved
(from [f08b58dd0c0ad860bb119bde94a46c6330ca1556]) layout_for works again with objects as specified in the documentation and Rails 2.3 [#5357 state:resolved] http://github.com/rails/rails/commit/f08b58dd0c0ad860bb119bde94a46c...
-
Repository August 11th, 2010 @ 02:27 PM
(from [1fbcd5f5fca165135ff773e94cdad00ee97b8aa9]) layout_for works again with objects as specified in the documentation and Rails 2.3 [#5357 state:resolved] http://github.com/rails/rails/commit/1fbcd5f5fca165135ff773e94cdad0...
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>
People watching this ticket
Tags
Referenced by
- 5357 Layout for does not accept objects as in the docs from Rails 2.3 (from [f08b58dd0c0ad860bb119bde94a46c6330ca1556]) layout_...
- 5357 Layout for does not accept objects as in the docs from Rails 2.3 (from [1fbcd5f5fca165135ff773e94cdad00ee97b8aa9]) layout_...