This project is archived and is in readonly mode.
Layout for does not accept objects as in the docs from Rails 2.3
-
Carlos Antonio da Silva
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
- State changed from new to resolved
(from [f08b58dd0c0ad860bb119bde94a46c6330ca1556]) layout_for works again with objects as specified in the documentation and Rails 2.3 [#5357 Layout for does not accept objects as in the docs from Rails 2.3 state:resolved] http://github.com/rails/rails/commit/f08b58dd0c0ad860bb119bde94a46c...
-
Repository
(from [1fbcd5f5fca165135ff773e94cdad00ee97b8aa9]) layout_for works again with objects as specified in the documentation and Rails 2.3 [#5357 Layout for does not accept objects as in the docs from Rails 2.3 state:resolved] http://github.com/rails/rails/commit/1fbcd5f5fca165135ff773e94cdad0...