Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Created September 18, 2012 04:57
Show Gist options
  • Save j-mcnally/3741339 to your computer and use it in GitHub Desktop.
Save j-mcnally/3741339 to your computer and use it in GitHub Desktop.
Tower.Route.draw ->
#@resources 'blogs'
@match '/blog', to: 'blogs#index', action: 'index', state: 'blog.index', name: 'indexBlog', method: ['GET']
@match '/blog/posts/:id', to: 'blogs#show', action: 'show', state: 'blog.posts.show', name: 'postsBlog', method: ['GET']
@match '/culture', to: 'cultures#index', action: 'index', state: 'culture.index', name: 'indexCulture', method: ['GET']
@match '/contact', to: 'contacts#index', action: 'index', state: 'contact.index', name: 'indexContact', method: ['GET']
@match '/work', to: 'works#index', action: 'index', state: 'work.index', name: 'indexWork', method: ['GET']
@match '/team', to: 'teams#index', action: 'index', state: 'team.index', name: 'indexTeam', method: ['GET']
@root to: 'homes#index', action: "index"
#@match '/test', to: 'application#test'
@match '/api/twitter/lists', to: 'Api.Twitter.Lists#index'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment