2 comboboxes

I made a selection helper.. I know, it's ugly code so the others need
not comment :stuck_out_tongue:

In my case it was States and Cities though. If you take some time to
understand the code you'll be able to use it as well.

Please see the following in order:
1) http://railshacks.blogspot.com/2007/09/helper-collectionforselect.html
2) http://pastie.caboo.se/104642

In the pastie, you'll see
1) state selection box in view --> this would be your "city"
2) encodeURI_selection helper --> just a helper that it uses
3) show_cities.rjs --> this would be your "show_companies.rjs" action
4) city_select.rhtml --> this would be your "company_select.rjs"

Remember -- your city is to my state, your company is to my city.. so
don't get confused :slight_smile: