Last active
August 29, 2015 14:14
Revisions
-
melhotiby revised this gist
Feb 6, 2015 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
melhotiby created this gist
Feb 6, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ jQuery ($) -> $('html').on 'change', '[data-reload]', (e) -> e.preventDefault() window.location = "#{$(this).data('url')}&#{$(this).data('params')}=#{$(this).val()}" This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ = select_tag :facility, options_for_select(['apples', 'oranges'], params[:facid]), data: { reload: true, url: spaces_path(q: params[:q]), params: 'facid' }