Skip to content

Instantly share code, notes, and snippets.

@cmaxw
Created March 27, 2012 16:14
Show Gist options
  • Save cmaxw/2217590 to your computer and use it in GitHub Desktop.
Save cmaxw/2217590 to your computer and use it in GitHub Desktop.
homebaserouter.js.coffee
class App.HomebaseRouter extends Backbone.Router
routes:
"all": 'allEvents'
"predecision": 'predecision'
"onboarding": 'onboarding'
"departure": 'departure'
"arrival": 'arrival'
"spending": 'spending'
initialize: ->
@collection = new App.EventCollection
@collection.fetch()
allEvents: ->
alert("all")
#new App.HomebaseEventsView(collection: @collection)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment