Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0fec53f243
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (50 sloc) 1.868 kb
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id', :to => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# match 'products/:id/purchase', :to => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Sample resource route with options:
# resources :products do
# member do
# get :short
# post :toggle
# end
#
# collection do
# get :sold
# end
# end
# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get :recent, :on => :collection
# end
# end
# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
# You can have the root of your site routed with map.root
# just remember to delete public/index.html.
# root :to => "welcome"
# See how all your routes lay out with "rake routes"
# Install the default route as the lowest priority.
# Note: The default route make all actions in every controller accessible
# via GET requests. You should consider removing or commenting it out if
# you're using named routes and resources.
match ':controller(/:action(/:id(.:format)))'
end
Jump to Line
Something went wrong with that request. Please try again.