lib/dineromail/app/helpers/dineromail_helper.rb in dineromail-0.1.0 vs lib/dineromail/app/helpers/dineromail_helper.rb in dineromail-0.1.1

- old
+ new

@@ -5,11 +5,11 @@ button_image_url = options.delete(:button_image_url) || Dineromail.configuration.button_image_url payment_url = options.delete(:payment_url) || Dineromail.configuration.payment_url form_options = options.delete(:form) || {} form_options[:action] = payment_url content_tag(:form, form_options ) do - ''.tap do |html| + ''.html_safe.tap do |html| html << dineromail_inputs(item_name,amount,options) html << content_tag(:input,nil, :type => 'image', :src => button_image_url, :border => '0', :name=> 'submit', :alt=>'Pagar con Dineromail' ) end end end @@ -25,10 +25,10 @@ pay_methods = options[:pay_methods] || Dineromail.configuration.pay_methods currency = options[:currency] || Dineromail.configuration.currency transaction_id = options[:transaction_id] item_number = options[:item_number] - ''.tap do |html| + ''.html_safe.tap do |html| html << content_tag(:input,nil, :type => 'hidden', :name => 'NombreItem', :value =>item_name) html << content_tag(:input,nil, :type => 'hidden', :name => 'TipoMoneda', :value =>currency) html << content_tag(:input,nil, :type => 'hidden', :name => 'PrecioItem', :value =>amount) html << content_tag(:input,nil, :type => 'hidden', :name => 'E_Comercio', :value =>account_number) html << content_tag(:input,nil, :type => 'hidden', :name => 'image_url', :value =>logo_url)