undefined method `merge’ for 5:Fixnum – Hidden Field

Just a quick post on an error I ran into today while using hidden fields:

undefined method `merge' for 5:Fixnum

27:   
28: 'button' %> 29:
30: 31: 32:

Thankfully this is an easy fix, simply amend your code as follows:

'button' %>
@upload.product_id %>

And that’s all there is to it, let me know if there are any issues.

2 thoughts on “undefined method `merge’ for 5:Fixnum – Hidden Field

  1. Josh Johnson

    Thanks so much for this!!! I was pulling my hair out with frustration over this problem. Your solution took care of it perfectly!

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s