main
 1Rails.application.routes.draw do
 2  root 'home#index'
 3  resources :lines, only: [:show]
 4
 5  # The priority is based upon order of creation: first created -> highest priority.
 6  # See how all your routes lay out with "rake routes".
 7
 8  # You can have the root of your site routed with "root"
 9  # root 'welcome#index'
10
11  # Example of regular route:
12  #   get 'products/:id' => 'catalog#view'
13
14  # Example of named route that can be invoked with purchase_url(id: product.id)
15  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
16
17  # Example resource route (maps HTTP verbs to controller actions automatically):
18  #   resources :products
19
20  # Example resource route with options:
21  #   resources :products do
22  #     member do
23  #       get 'short'
24  #       post 'toggle'
25  #     end
26  #
27  #     collection do
28  #       get 'sold'
29  #     end
30  #   end
31
32  # Example resource route with sub-resources:
33  #   resources :products do
34  #     resources :comments, :sales
35  #     resource :seller
36  #   end
37
38  # Example resource route with more complex sub-resources:
39  #   resources :products do
40  #     resources :comments
41  #     resources :sales do
42  #       get 'recent', on: :collection
43  #     end
44  #   end
45
46  # Example resource route with concerns:
47  #   concern :toggleable do
48  #     post 'toggle'
49  #   end
50  #   resources :posts, concerns: :toggleable
51  #   resources :photos, concerns: :toggleable
52
53  # Example resource route within a namespace:
54  #   namespace :admin do
55  #     # Directs /admin/products/* to Admin::ProductsController
56  #     # (app/controllers/admin/products_controller.rb)
57  #     resources :products
58  #   end
59end