Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

routes.rb

View gist:8364354
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Grassroots::Application.routes.draw do
 
 
root 'static_pages#home'
 
get '/register', to: 'users#new'
get '/login', to: 'sessions#new'
post '/login', to: 'sessions#create'
get '/logout', to: 'sessions#destroy', as: 'logout'
resources :organizations
resources :projects
resources :users do
member do
get '/private_messages/new', to: 'users#write_private_message'
post '/private_messages', to: 'users#send_private_message'
end
end
resources :profiles
resources :notifications
 
get "/home" => "static_pages#home", as: :home
 
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.