Created
February 3, 2012 20:26
-
-
Save gaygenius/1732304 to your computer and use it in GitHub Desktop.
Place index view using backbone.js (in app/views/places)
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
#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