adding new helpers
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@14 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
b4423f6611
commit
eb915702dc
|
@ -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
|
Reference in New Issue