you put the onChange… between curly braces {} in the options, and what
can we put in the html_options {}
It’s the other way round. The first hash is options, which takes
selected and a few other things. The second hash (html_options) goes
straight out to the rendered html, so if you put ‘foo’ => ‘bar’ then
your select tag would have foo=“bar” as an attribute.
you put the onChange… between curly braces {} in the options, and what
can we put in the html_options {}
It’s the other way round. The first hash is options, which takes
selected and a few other things. The second hash (html_options) goes
straight out to the rendered html, so if you put ‘foo’ => ‘bar’ then
your select tag would have foo=“bar” as an attribute.
Fred
ok, now I understand …
thanks again!
raimon
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.