Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
118
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <h1><%= @todo_list.title %></h1>
  2.  
  3. <ul class="todo_items">
  4.   <% @todo_list.todo_items.each do |todo_item| %>
  5.   <li id="<%= dom_id(todo_item)%>"><%= todo_item.content %>
  6.     <%= link_to "Edit", edit_todo_list_todo_item_path(todo_item) %>
  7.     <%= link_to "Delete", @todo_items, :method => :delete, :id => todo_item %>
  8.   </li>
  9.   <% end %>
  10. </ul>
  11.  
  12. <p>
  13.   <%= link_to "New Todo Item", new_todo_list_todo_item_path %>
  14. </p>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement