Guest User

Untitled

a guest
Sep 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 2.62 KB | None | 0 0
  1. Contacts300::Application.routes.draw do
  2.  
  3. resources :contexts
  4.  
  5.  
  6. resources :searches do
  7.     new do
  8.         get :options
  9.     end
  10. end
  11.  
  12.  
  13.  
  14.  
  15. match 'searches/new/:model', :to => 'searches#new'
  16.  
  17.  
  18. match 'contacts/duplicates', :to => 'contacts#duplicates'  
  19. match 'contacts/show_assigned', :to => 'contacts#show_assigned'  
  20. match 'companies/show_assigned', :to => 'companies#show_assigned'  
  21.  
  22.   # The priority is based upon order of creation: first created -> highest priority.
  23.  
  24.   # Sample of regular route:
  25.   #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  26.   # Keep in mind you can assign values other than :controller and :action
  27.  
  28.   # Sample of named route:
  29.   #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  30.   # This route can be invoked with purchase_url(:id => product.id)
  31.  
  32.   # Sample resource route (maps HTTP verbs to controller actions automatically):
  33.   #   map.resources :products
  34. resources :events do
  35.      member do
  36.         get :email_addresses
  37.         get :postal_addresses
  38.         get :contact_list
  39.     end
  40. end
  41.  
  42.  
  43. # resources :contacts do
  44. #   collection do
  45. #       any :load_contact_company_address_with_ajax
  46. #   end
  47. #end
  48.  
  49. resources :companies
  50. resources :asemployees
  51. resources :contracts
  52. resources :user
  53. resources :user_assignments
  54.  
  55.  
  56. #  map.resources :cdb
  57.  
  58.   # Sample resource route with options:
  59.   #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
  60.  
  61.   # Sample resource route with sub-resources:
  62.   #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
  63.  
  64.   # Sample resource route with more complex sub-resources
  65.   #   map.resources :products do |products|
  66.   #     products.resources :comments
  67.   #     products.resources :sales, :collection => { :recent => :get }
  68.   #   end
  69.  
  70.   # Sample resource route within a namespace:
  71.   #   map.namespace :admin do |admin|
  72.   #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
  73.   #     admin.resources :products
  74.   #   end
  75.  
  76.   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
  77.   # map.root :controller => "welcome"
  78.  
  79. root :to => ':cdb#nil'
  80.  # See how all your routes lay out with "rake routes"
  81.  
  82.   # Install the default routes as the lowest priority.
  83.   # Note: These default routes make all actions in every controller accessible via GET requests. You should
  84.   # consider removing or commenting them out if you're using named routes and resources.
  85. match '/:controller(/:action(/:id))'
  86. #match '/:controller(/:action(/:id.:format))'
  87.  
  88. end
Add Comment
Please, Sign In to add comment