Bike database interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
757 B

<div class="container">
<h1>Listing bikes</h1>
<table class="table table-striped table-bordered table-hover">
<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 ' + Log Bike', new_bike_path, class: "btn btn-default" %>
</div>