Skip to content

Instantly share code, notes, and snippets.

@oneawayman
Created March 16, 2014 13:14
Show Gist options
  • Save oneawayman/9583026 to your computer and use it in GitHub Desktop.
Save oneawayman/9583026 to your computer and use it in GitHub Desktop.
routes.rb
Bloccit::Application.routes.draw do
get "comments/create"
devise_for :users
resources :topics do
resources :posts, except: [:index] do
resources :comments, only: [:create, :destroy]
end
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