Hello,
i have read somewhere that calling

<%= render :partial => 'my_partial', :collection => my_collection, :as
=> :model, :layout => 'my_layout' %>

used to render output of
<%= render :partial => 'my_partial', :collection => my_collection, :as
=> :model %>
inside a single layout 'my_layout'.

However, it does not seem to work for me now, and this behavior is not
documented in API pages, the suggested way to do is to yield explicitly:

<%= render :layout => 'my_layout' do %>
  <%= render :partial => 'my_partial', :collection => my_collection, :as
=> :model %>
<% end %>

Can anybody please explain if i am doing something wrong, or if this
behavior of :layout option is not supported anymore?

Thanks,

Alexey.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to