whoops, busted a helper

This commit is contained in:
tdreyno 2009-07-31 10:13:19 -07:00
parent 2ec2422b47
commit 043361674f

View file

@ -1,5 +1,6 @@
Middleman.helpers do
def link_to(title, url="#", params={ :href => url })
def link_to(title, url="#", params={})
params.merge!(:href => url)
params = params.map { |k,v| %Q{#{k}="#{v}"}}.join(' ')
%Q{<a #{params}>#{title}</a>}
end