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 00:35:29 -05:00
|
|
|
module BreweriesHelper
|
2007-11-17 00:51:15 -05:00
|
|
|
def new_brewery_link
|
|
|
|
link_to 'New Brewery', new_brewery_path,
|
|
|
|
{ :title => 'Create a new brewery' }
|
|
|
|
end
|
|
|
|
|
|
|
|
def show_brewery_link(brewery)
|
2007-12-03 03:38:47 -05:00
|
|
|
link_to brewery.title, brewery_path(brewery.page.title_for_url),
|
2007-11-17 00:51:15 -05:00
|
|
|
{ :title => brewery.title }
|
|
|
|
end
|
|
|
|
|
|
|
|
def edit_brewery_link(brewery)
|
|
|
|
link_to 'Edit Brewery', edit_brewery_path(brewery.page.title_for_url),
|
|
|
|
{ :title => "Edit #{brewery.title}" }
|
|
|
|
end
|
2007-11-15 00:35:29 -05:00
|
|
|
end
|