This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/helpers/beers_helper.rb

10 lines
203 B
Ruby

module BeersHelper
def new_beer_link
link_to "Beer Me!", new_beer_path, { :title => 'Create a new beer' }
end
def abv(beer)
number_to_percentage(beer.abv, { :precision => 1 })
end
end