Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Created December 21, 2008 23:17
Show Gist options
  • Save traviskroberts/38786 to your computer and use it in GitHub Desktop.
Save traviskroberts/38786 to your computer and use it in GitHub Desktop.
def mark_as_complete(id)
provides :js
# do work, son
# set instance variable to indicate success/failure
if stuff_done
@complete = true
end
render
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment