Forum: Ruby on Rails SELECTION LIST with local variable

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2119f016588ba13373484491bd2dd6d1?d=identicon&s=25 Joe Peck (fatcatt316)
on 2007-03-01 22:36

Is there a way to use the Rails select list with a local variable that
isn't tied to any models?

Here is what I mean:

<%= select(@name, %w{Joe Fred Arnold}) %>

It gives this error:
wrong number of arguments (2 for 3)

Is there a way to use the select list with a local variable?  Any help
is appreciated.
This topic is locked and can not be replied to.