Skip to content

@krainboltgreene /routes.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

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