SELECTION LIST with local variable

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs