Skip to content

Instantly share code, notes, and snippets.

@xander-miller
Created March 19, 2014 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xander-miller/9651364 to your computer and use it in GitHub Desktop.
Save xander-miller/9651364 to your computer and use it in GitHub Desktop.
Whatever::Application.routes.draw do
resources :posts do
resources :comments, only: [:create, :destroy], controller: 'posts/comments'
end
devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks', registrations: 'users/registrations' }
resources :users, only: [:show]
resources :breweries, only: [:show] do
resources :comments, only: [:create, :destroy], controller: 'breweries/comments'
end
match "about" => 'welcome#about', via: :get
root to: 'welcome#index'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment