Skip to content

Instantly share code, notes, and snippets.

@aeden
Created February 5, 2010 21:29
Show Gist options
  • Select an option

  • Save aeden/296269 to your computer and use it in GitHub Desktop.

Select an option

Save aeden/296269 to your computer and use it in GitHub Desktop.
<ul class="people">
<li style="display:none"></li>
<% @people.each do |person| -%>
<li><span class="name"><%= person.name %></span> <%= link_to 'delete', delete_person_path(person), :class => 'delete' %></li>
<% end -%>
</ul>
<% form_for :person, :url => people_url, :html => {:class => 'people'} do |f| -%>
<%= f.text_field :name %> <%= f.submit 'Add Person'%>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment