Skip to content

@rjewell2200 /gist:8364354
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
routes.rb
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.