1
0
Fork 0
forked from OpenNeo/impress
impress/app/helpers/static_helper.rb

22 lines
500 B
Ruby

module StaticHelper
def pledgie_amount_label_tag(content)
label_tag 'pledge[amount]', content
end
def pledgie_amount_field_tag
text_field_tag 'pledge[amount]', '0.00', :id => 'pledge_amount'
end
def pledgie_confirm_url
"http://pledgie.com/campaigns/#{PLEDGIE_CAMPAIGN_ID}/pledge/confirm"
end
def pledgie_form_tag(*args, &block)
form_tag(pledgie_confirm_url, *args, &block)
end
def pledgie_url
"http://pledgie.com/campaigns/#{PLEDGIE_CAMPAIGN_ID}"
end
end