Skip to content

Instantly share code, notes, and snippets.

@aalvesjr
Created November 7, 2012 17:13
Show Gist options
  • Save aalvesjr/4033016 to your computer and use it in GitHub Desktop.
Save aalvesjr/4033016 to your computer and use it in GitHub Desktop.
Alteração gvar, interessados [TESTE]
<%= form_for @interested, :url => interested_contact_save_path(@interested) do |w| %>
<ul>
<%= w.fields_for :interested_contacts do |i| %>
<% if i.object.id.nil? %> <!-- Acrescentar isso aqui -->
<li>
<label>
<span>Data: </span><br/>
<%= i.text_field :date, :class => "select" %>
</label>
</li>
<li>
<label>
<span>Interesses: </span><br/>
<%= i.text_area :description, :class => "inputMedio input" %>
</label>
</li>
<% end %>
<% end %>
<li class="btEnviarForm">
<%= w.submit %>
</li>
</ul>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment