John Merlino
2013-May-20 23:02 UTC
undefined method `stringify_keys'' for #<String:0x007fe8a3ba0a48>
From my understanding, you can pass a block to the link_to helper, but the following code gives me an error "undefined method `stringify_keys'' for #<String:0x007fe8a3ba0a48>". = link_to("One time Payment with Paypal or Credit Card", @order.payment_payment_standard_url(new_order_url(invoice: @invoice), payment_notifications_url, @invoice)) do = image_tag "https://www.paypalobjects.com/webstatic/ mktg/logo/AM_mc_vs_dc_ae.jpg" -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b58db872-c5b1-4bea-b7a6-9ec52f856ff6%40r3g2000yqe.googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung
2013-May-21 09:35 UTC
Re: undefined method `stringify_keys'' for #<String:0x007fe8a3ba0a48>
On Tuesday, May 21, 2013 12:02:20 AM UTC+1, John Merlino wrote:> > From my understanding, you can pass a block to the link_to helper, but > the following code gives me an error "undefined method > `stringify_keys'' for #<String:0x007fe8a3ba0a48>". > > I don''t think you can pass both a block & content as an argument. Chooseone. Fred> = link_to("One time Payment with Paypal or Credit Card", > @order.payment_payment_standard_url(new_order_url(invoice: @invoice), > payment_notifications_url, @invoice)) do > = image_tag "https://www.paypalobjects.com/webstatic/ > mktg/logo/AM_mc_vs_dc_ae.jpg<https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg>" > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f466f2f7-e17c-425d-8398-ac449a9da6ef%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.