Forum: Ruby on Rails SELECTION LIST with local variable

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joe P. (Guest)
on 2007-03-01 23:36
Hello,

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.