Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
- map.root :controller => "quotes"
- map.connect 'new',:controller => 'quotes', :action => 'new'
- map.connnect 'show', :controller => 'quotes', :action => 'show'
- map.connect 'quotes/show', :controller => 'quotes', :action => 'show'
- map.connect 'show/:id', :controller => 'quotes', :action => 'show'
- map.resources :quotes
- map.connect ':id', :controller => 'quotes', :action => 'show'
- # See how all your routes lay out with "rake routes"
- # Install the default routes as the lowest priority.
- map.connect ':controller/:action/:id'
- map.connect ':controller/:action/:id.:format'
- end
Add Comment
Please, Sign In to add comment