Lines Matching refs:map
41 ActionController::Routing::Routes.draw do |map|
45 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
49 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
53 # map.resources :products
56 # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
59 # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
62 # map.resources :products do |products|
68 # map.namespace :admin do |admin|
73 # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
74 # map.root :controller => "welcome"
81 map.connect ':controller/:action/:id'
82 map.connect ':controller/:action/:id.:format'