Created
August 16, 2012 23:40
-
-
Save pullmonkey/3374533 to your computer and use it in GitHub Desktop.
the erb version of dynamic select box js updater for rails 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/views/home/update_artists.js.haml | |
$('#artists_select').html("<%= escape_javascript(options_for_select(@artists)) %>"); | |
$('#songs_select').html("<%= escape_javascript(options_for_select(@songs)) %>"); | |
# app/views/home/update_songs.js.haml | |
$('#songs_select').html("<%= escape_javascript(options_for_select(@songs)) %>"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment