a guest Jan 24th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <table>
  2.   <% @robots.each do |robot| %>
  3.     <tr>
  4.       <td><%= link_to, robot_path(robot) %></td>
  5.       <td><%= button_to 'Edit', edit_robot_path(robot), method: 'get'%></td>
  6.       <td><%= button_to 'Remove', robot_path(robot), method: 'delete', data: { confirm: 'Are you sure?' } %></td>
  7.   <% end %>
  8. </table>
  9. <%= link_to "Add a New Robot", new_robot_path %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand