Sha256: a6540dbe31816e2095dc6fbb497fa68e5503043418feac7cfca5708b70b50d51

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

<%= f.error_messages %>

<p>
  <%= f.label :name %><br />
  <%= f.text_field :name %>
</p>

<div id='some_other_model_children'>
  <% f.fields_for :some_other_models do |some_other_model_form| %>
    <%= render :partial => 'some_other_model', :locals => { :f => some_other_model_form } %>
  <% end %>
</div>

<p>
  <%= add_child_link 'Add a SomeOtherModel', 'some_other_model', f %>
</p>

<div id='testy_children'>
  <% f.fields_for :testies do |testy_form| %>
    <%= render :partial => 'testy', :locals => { :f => testy_form } %>
  <% end %>
</div>

<p>
  <%= add_child_link 'Add a Testy', 'testy', f %>
</p>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
view_mapper-0.3.3 test/views/has_many/expected_templates/_form.html.erb
view_mapper-0.3.2 test/views/has_many/expected_templates/_form.html.erb
view_mapper-0.3.1 test/views/has_many/expected_templates/_form.html.erb
view_mapper-0.3.0 test/expected_templates/has_many/_form.html.erb