diff --git a/app/helpers/beers_helper.rb b/app/helpers/beers_helper.rb new file mode 100644 index 0000000..486ba97 --- /dev/null +++ b/app/helpers/beers_helper.rb @@ -0,0 +1,9 @@ +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