This does the trick: <%= select_tag :role, options_for_select(Project::COMPANY_ROLES + ['Other...'], @relationship.role), :class => 'selectInput hasOtherValue' %>
On Apr 25, 10:40 pm, Tom Milewski <[email protected]> wrote: > Hello, > > I have the following code: > > <%= select_tag :role, options_for_select(Project::COMPANY_ROLES.concat > (['Other...']), @relationship.role), :class => 'selectInput > hasOtherValue' %> > > For some reason it concatenates "Other..." to COMPANY_ROLES but saves > this past the view that was loaded. > > 1st Run = 1 option of "Other..." > 2nd Run = 2 options of "Other..." > 3rd Run = 3 options of "Other..." > > I simply want it to concatenate during run-time and not save state. > > Any ideas? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

