Created
October 30, 2011 09:34
-
-
Save stuffness/1325737 to your computer and use it in GitHub Desktop.
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 characters
#relevant controller | |
def show | |
@timer = Timer.find(params[:id]) | |
respond_to do |format| | |
format.html | |
format.js { render layout: false } | |
end | |
end | |
#relevant coffee - refreshurl has a show action path (e.g. "/timers/77") | |
refreshtimer = -> | |
$.getScript(refreshurl) | |
return null | |
#show.js.erb - just a test for now | |
alert("test"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment