Guest User

Untitled

a guest
May 27th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. ActionController::Routing::Routes.draw do |map|
  2. map.resources :cuestionario_cargos
  3.  
  4. map.resources :respuestas
  5.  
  6. map.resources :preguntas
  7.  
  8. map.resources :accesos
  9.  
  10. map.resources :personas
  11.  
  12. map.resources :perfiles
  13.  
  14. map.resources :cargos
  15.  
  16. map.resources :cuestionarios do |cuestionario|
  17. cuestionario.resource :responder, :controller => 'responder_cuestionario'
  18. cuestionario.resources :preguntas
  19. end
  20.  
  21.  
  22.  
  23. # The priority is based upon order of creation: first created -> highest priority.
  24.  
  25. # Sample of regular route:
  26. # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  27. # Keep in mind you can assign values other than :controller and :action
  28.  
  29. # Sample of named route:
  30. # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  31. # This route can be invoked with purchase_url(:id => product.id)
  32.  
  33. # Sample resource route (maps HTTP verbs to controller actions automatically):
  34. # map.resources :products
  35.  
  36. # Sample resource route with options:
  37. # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
  38.  
  39. # Sample resource route with sub-resources:
  40. # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
  41.  
  42. # Sample resource route with more complex sub-resources
  43. # map.resources :products do |products|
  44. # products.resources :comments
  45. # products.resources :sales, :collection => { :recent => :get }
  46. # end
  47.  
  48. # Sample resource route within a namespace:
  49. # map.namespace :admin do |admin|
  50. # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
  51. # admin.resources :products
  52. # end
  53.  
  54. # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
  55. # map.root :controller => "welcome"
  56.  
  57. # See how all your routes lay out with "rake routes"
  58.  
  59. # Install the default routes as the lowest priority.
  60. map.connect ':controller/:action/:id'
  61. map.connect ':controller/:action/:id.:format'
  62. end
Add Comment
Please, Sign In to add comment