lib/ratpack/html_helpers.rb in BrianTheCoder-ratpack-0.2.0 vs lib/ratpack/html_helpers.rb in BrianTheCoder-ratpack-0.2.2

- old
+ new

@@ -1,6 +1,10 @@ module RatPack - module HtmlHelpers + module HtmlHelpers + def pluralize(str,num) + num.to_i > 1 ? str.plural : str.singular + end + def link_to(name, url, options = {}) defaults = {:href => url} tag(:a,name,defaults.merge(options)) end \ No newline at end of file