diff --git a/app/helpers/breweries_helper.rb b/app/helpers/breweries_helper.rb index 34a9fdd..2e591a5 100644 --- a/app/helpers/breweries_helper.rb +++ b/app/helpers/breweries_helper.rb @@ -5,7 +5,7 @@ module BreweriesHelper end def show_brewery_link(brewery) - link_to 'Show', brewery_path(brewery.page.title_for_url), + link_to brewery.title, brewery_path(brewery.page.title_for_url), { :title => brewery.title } end diff --git a/app/views/breweries/index.rhtml b/app/views/breweries/index.rhtml index edffbae..424c9e5 100644 --- a/app/views/breweries/index.rhtml +++ b/app/views/breweries/index.rhtml @@ -1,23 +1,12 @@ +
Title | -- | - | - |
---|---|---|---|
<%= brewery.title -%> | -<%= link_to 'Show', brewery_path(brewery.page.title_for_url) %> | -<%= link_to 'Edit', edit_brewery_path(brewery.page.title_for_url) %> | -<%= link_to 'Destroy', brewery_path(brewery.page.title_for_url), :confirm => 'Are you sure?', :method => :delete %> | -
No breweries, yet.
+