1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-04-04 10:03:22 -04:00
bike-database/app/views/bikes/index.html.erb
2014-03-02 11:49:33 -06:00

30 lines
591 B
Plaintext

<h1>Listing bikes</h1>
<table>
<thead>
<tr>
<th> Brand </th>
<th> Model </th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<% @bikes.each do |bike| %>
<tr>
<td><%= bike.brand %></td>
<td><%= bike.model %></td>
<td><%= link_to 'Show', bike %></td>
<td><%= link_to 'Edit', edit_bike_path(bike) %></td>
<td><%= link_to 'Destroy', bike, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Bike', new_bike_path %>