This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2007-11-15 19:17:37 -05:00
|
|
|
<% unless @beers.empty? -%>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Beer</th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% for beer in @beers %>
|
|
|
|
<tr>
|
|
|
|
<td><%= link_to beer.title, beer_path(beer.page.title_for_url) %></td>
|
|
|
|
<td><%= link_to 'Edit', edit_beer_path(beer.page.title_for_url) %></td>
|
|
|
|
<td><%= link_to 'Destroy', beer_path(beer.page.title_for_url), :confirm => 'Are you sure?', :method => :delete %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
2007-11-15 19:57:44 -05:00
|
|
|
<% else -%>
|
|
|
|
<p>No beers, yet</p>
|
2007-11-15 19:17:37 -05:00
|
|
|
<% end -%>
|
|
|
|
|
2007-11-15 19:57:44 -05:00
|
|
|
<% content_for :sidebar do -%>
|
|
|
|
<%= link_to "New Beer", new_beer_path, { :title => 'Create a new beer' } -%><br />
|
|
|
|
<% end -%>
|