<% if local_assigns[:positioned_by] %>
<% else %>
<% end %> <%= local_assigns[:legend] || association.to_s.titleize %> <%= yield %> Add <%= f.fields_for association, :builder => f.class do |nested_f| %> <%= render 'nested_fields/block', :f => nested_f, :nested_partial => nested_partial %> <% end %>