Forum: Ruby on Rails Selected value in a combobox

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.
Maria (Guest)
on 2007-05-02 18:26
I'm using ActiveScaffold.

In the file house_helper.rb I have written the code:


def house_form_column(record, input_name)
  ...
  list = House.find(:all, :include => 'city')
  new_list=...
  ...
    list do |element|
    if record = element.name
      selec=element.id
    end
  end
  select_tag 'X',options_for_select(new_list, selected=selec),
{:multiple => false}
  ...



to visualize a combobox with some data. The information is visualised
correctly but I can't select a value in the combobox, it doesn't work.
This topic is locked and can not be replied to.