Merge error?

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

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, 11:29 pm, edberner [email protected] 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 [email protected] 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