undefined method `stringify_keys' for #<String:0x007fe8a3ba0a48>

300 views
Skip to first unread message

John Merlino

unread,
May 20, 2013, 7:02:20 PM5/20/13
to Ruby on Rails: Talk
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"

Frederick Cheung

unread,
May 21, 2013, 5:35:19 AM5/21/13
to rubyonra...@googlegroups.com


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. Choose one.

Fred 
Reply all
Reply to author
Forward
0 new messages