changeset 7: | ac1024130232 |
parent: | ebbe8fce79fb |
child: | eddc0740bd25 |
author: | moriq@moriq.com |
date: | Wed Mar 05 03:57:54 2008 +0900 (16 years ago) |
permissions: | -rw-r--r-- |
description: | generate authenticated again. mercurial import したときに db/migrate lib が消えてた。orz |
1ActionController::Routing::Routes.draw do |map|2 map.resources :users34 map.resource :session56 map.resources :users78 map.resource :session910 map.resources :users1112 map.resource :session1314 # The priority is based upon order of creation: first created -> highest priority.1516 # Sample of regular route:17 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'18 # Keep in mind you can assign values other than :controller and :action1920 # Sample of named route:21 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'22 # This route can be invoked with purchase_url(:id => product.id)2324 # Sample resource route (maps HTTP verbs to controller actions automatically):25 # map.resources :products2627 # Sample resource route with options:28 # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }2930 # Sample resource route with sub-resources:31 # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller3233 # Sample resource route within a namespace:34 # map.namespace :admin do |admin|35 # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)36 # admin.resources :products37 # end3839 # You can have the root of your site routed with map.root -- just remember to delete public/index.html.40 map.root :controller => "home"4142 # See how all your routes lay out with "rake routes"4344 # Install the default routes as the lowest priority.45 map.connect ':controller/:action/:id'46 map.connect ':controller/:action/:id.:format'47end