updating a select box based on another (Ruby on Rails)
问题 I'm in need of a more complete example on how to update a select box based on the results of a second select box in Ruby on Rails. I asked about this already here. I've read through the feedback from that posting, but am not having any luck figuring this out, and I've been trying for hours. Anybody know of a better (and more complete) example? 回答1: This is generally handled in Javascript. I don't particularly enjoy coding Javascript, so what I do for this in my application is to use a form