Skip to content

Instantly share code, notes, and snippets.

@gaygenius
Created February 3, 2012 20:26
Show Gist options
  • Save gaygenius/1732304 to your computer and use it in GitHub Desktop.
Save gaygenius/1732304 to your computer and use it in GitHub Desktop.
Place index view using backbone.js (in app/views/places)
#places
:javascript
$(function() {
window.router = new BackboneJs.Routers.PlacesRouter({places: #{@places.to_json.html_safe}});
Backbone.history.start();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment