Skip to content

Instantly share code, notes, and snippets.

@lessless
Created October 8, 2012 18:20
Show Gist options
  • Save lessless/3854036 to your computer and use it in GitHub Desktop.
Save lessless/3854036 to your computer and use it in GitHub Desktop.
ajax_on_select.rb
=form_tag('/meetings/filter_by_city', remote: true) do
=select("place", "city",options_for_select(@places), {}, onchange: 'this.form.submit()')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment