# Merge error?

**URL:** <https://www.ruby-forum.com/t/merge-error/197075>\
**Category:** Rails\
**Created:** [April 10, 2008, 12:29am UTC](https://www.ruby-forum.com/t/merge-error/197075 "2008-04-10T00:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edberner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f9ae1b/32.png) [@edberner](https://www.ruby-forum.com/u/edberner)\
**Post date:** [April 10, 2008, 12:29am UTC](https://www.ruby-forum.com/t/merge-error/197075/1 "2008-04-10T00:29:59Z")

</div>

When I write this line  
\<%= round\_form.select :round, :action, [“a”, “b”, “c”, “d”] %\>

I get this. What gives?  
undefined method `merge’ for [“a”, “b”, “c”, “d”]:Array

---

<div class="post-metadata">

**Author:** ![edberner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f9ae1b/32.png) [@edberner](https://www.ruby-forum.com/u/edberner)\
**Post date:** [April 10, 2008, 12:30am UTC](https://www.ruby-forum.com/t/merge-error/197075/2 "2008-04-10T00:30:34Z")

</div>

Round is my model and action is a field in that model. I simply want  
to be able to set that field to a b c or d.

---

<div class="post-metadata">

**Author:** ![edberner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f9ae1b/32.png) [@edberner](https://www.ruby-forum.com/u/edberner)\
**Post date:** [April 10, 2008, 9:30am UTC](https://www.ruby-forum.com/t/merge-error/197075/3 "2008-04-10T09:30:12Z")

</div>

On Apr 9, 11:29 pm, edberner [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Round is my model and action is a field in that model. I simply want  
> to be able to set that field to a b c or d.
> 
> On Apr 9, 6:19 pm, edberner [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > When I write this line  
> > \<%= round\_form.select :round, :action, [“a”, “b”, “c”, “d”] %\>
> 
> > I get this. What gives?  
> > undefined method `merge’ for [“a”, “b”, “c”, “d”]:Array  
> > I’m guessing round\_form is the form builder yielded by a form\_for, in  
> > which (case at least from the name) it’s already bound to round - you  
> > can just say round\_form.select :action, [“a”, “b”, “c”, “d”] Right  
> > now rails is assuming your last argument is a hash of options

Fred
