adding new helpers

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@14 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2007-11-11 05:05:07 +00:00
parent b4423f6611
commit eb915702dc
1 changed files with 9 additions and 0 deletions

View File

@ -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