module BreweriesHelper
  def new_brewery_link
    link_to 'New Brewery', new_brewery_path,
      { :title => 'Create a new brewery' }
  end
  
  def show_brewery_link(brewery)
    link_to brewery.title, brewery_path(brewery),
      { :title => brewery.title }
  end
  
  def edit_brewery_link(brewery)
    link_to 'Edit Brewery', edit_brewery_path(brewery),
      { :title => "Edit #{brewery.title}" }
  end
end