Javascript Ruby on Rails

How to create a dependent dropdown in Ruby on Rails