Skip to content

Instantly share code, notes, and snippets.

@sgharms
Created January 13, 2012 16:44
Show Gist options
  • Save sgharms/1607419 to your computer and use it in GitHub Desktop.
Save sgharms/1607419 to your computer and use it in GitHub Desktop.
Rails to Javascript passing with reset
:javascript
$(function () {
Timesheet.Tasks.reset(#{@tasks.to_json.html_safe});
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment