Guest User

Untitled

a guest
Apr 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
  2. map.root :controller => "quotes"
  3. map.connect 'new',:controller => 'quotes', :action => 'new'
  4. map.connnect 'show', :controller => 'quotes', :action => 'show'
  5. map.connect 'quotes/show', :controller => 'quotes', :action => 'show'
  6. map.connect 'show/:id', :controller => 'quotes', :action => 'show'
  7. map.resources :quotes
  8. map.connect ':id', :controller => 'quotes', :action => 'show'
  9.  
  10. # See how all your routes lay out with "rake routes"
  11.  
  12. # Install the default routes as the lowest priority.
  13. map.connect ':controller/:action/:id'
  14. map.connect ':controller/:action/:id.:format'
  15. end
Add Comment
Please, Sign In to add comment