Skip to content

Instantly share code, notes, and snippets.

@rdavila
Created September 6, 2012 22:47
Show Gist options
  • Save rdavila/3660998 to your computer and use it in GitHub Desktop.
Save rdavila/3660998 to your computer and use it in GitHub Desktop.
class Admin.Routers.Menus extends Backbone.Router
routes:
'': 'fetchData'
fetchData: ->
Admin.Collections.MenuCategories.fetch()
$("#menu_menu_category_id").autocomplete
data: Admin.Collections.MenuCategories.pluck('name')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment