write sql queries using jquery for a ruby application
<p>I have a ruby on rails application.I am using jquery to populate a drop down list box.
I have to get the values from the sql query.
i.e selected_release=Release.find(id)
cycles=selected_release.cycles.
The second drop down is populated from cycles.</p>
