Skip to content

Instantly share code, notes, and snippets.

@Sutto
Created March 26, 2010 05:05
Show Gist options
  • Save Sutto/344538 to your computer and use it in GitHub Desktop.
Save Sutto/344538 to your computer and use it in GitHub Desktop.
Bighelpmob::Application.routes.draw do |map|
namespace :admin do
resources :users do
resources :participations
end
resources :missions
resources :organisations
resources :pickups
resources :contents
resources :questions do
collection do
post :reorder
end
end
match '', :to => 'admin/dashboard#index', :as => :dashboard
end
resources :user_session, :as => 'user-sessions'
get 'sign-in', :to => 'user_sessions#new', :as => :sign_in
post 'sign-in', :to => 'user_sessions#create'
match 'sign-out', :to => 'user_sessions#destroy', :as => :sign_out
resources :users do
member do
post :add_rxp_auth
end
end
# Mission Routes.
# match 'missions/next', :to => 'missions#next', :as => :next_mission
# match 'missions/:id', :to => 'missions#show', :as => :mission
# match 'missions/:id/join', :to => 'missions#join', :as => :join_mission
# match 'missions/:id/edit-details', :to => 'missions#edit', :as => :edit_mission
get 'missions/:id/edit/:as', :to => 'missions#edit', :as => :edit_mission_with_role
resources :missions do
collection { get :next }
member { get :join }
end
root :to => "pages#show"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment