public
Created

  • Download Gist
routes.rb
Ruby
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
CFAC::Application.routes.draw do
 
default_url_options :host => "www.connectforacause.com"
 
namespace :admin do
resources :auctions, only: [:index, :edit, :update, :search, :destroy] do
get 'search', on: :collection
get 'report', on: :collection
end
 
resources :users, only: [:index, :show, :edit, :update, :search, :destroy, :nonprofits_pending, :approve_ein] do
get 'nonprofits_pending', on: :collection
get 'search', on: :collection
post 'approve_ein'
end
 
root :to => 'pages#dashboard'
end
 
devise_for :users, controllers: { :omniauth_callbacks => "users/omniauth_callbacks", :registrations => "users/registrations", :except => [:destroy]} do
get 'login' => 'devise/sessions#new'
get 'logout' => 'pages#logout', :as => :logout
get 'register' => 'users/registrations#new'
get 'profile' => 'users/registrations#edit'
end
 
resources :auctions, only: [:index, :show, :new, :create, :edit, :search, :my_auctions] do
collection do
get 'search'
get 'update_statuses'
end
post 'mark_auction_complete'
resources :bids, only: [:create]
end
 
resources :notifications
resources :watched_auctions, only: [:index, :destroy]
 
get 'follow_auction' => 'watched_auctions#create'
 
get "payment_profile" => "payment_profiles#new_or_edit"
post "payment_profile" => "payment_profiles#create_or_update"
 
# Static Pages
match "about" => "pages#about"
match "support" => "pages#support"
match "jobs" => "pages#jobs"
match "terms" => "pages#terms"
match "privacy" => "pages#privacy"
match "partners" => "pages#partners"
match "choose" => "pages#choose"
match "executive_info" => "pages#executive_info"
 
# Important Links Pages
match "invite_friends" => "pages#invite_friends"
match "faq" => "pages#faq"
match "how_it_works" => "pages#how_it_works"
match "tips" => "pages#tips"
match "non_profit_info" => "pages#non_profit_info"
 
match "name_locked" => "pages#name_locked"
 
match "logged_out" => "pages#logged_out"
match "email_sent" => "pages#email_sent"
 
post "support_email" => "pages#support_email"
post "executive_email" => "pages#executive_email"
 
match "bid_accepted" => "pages#bid_accepted"
 
root :to => 'pages#home'
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.