changelog shortlog tags changeset manifest revisions annotate raw

config/routes.rb

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 :users
3
4 map.resource :session
5
6 map.resources :users
7
8 map.resource :session
9
10 map.resources :users
11
12 map.resource :session
13
14 # The priority is based upon order of creation: first created -> highest priority.
15
16 # 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 :action
19
20 # 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)
23
24 # Sample resource route (maps HTTP verbs to controller actions automatically):
25 # map.resources :products
26
27 # Sample resource route with options:
28 # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
29
30 # Sample resource route with sub-resources:
31 # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
32
33 # 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 :products
37 # end
38
39 # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
40 map.root :controller => "home"
41
42 # See how all your routes lay out with "rake routes"
43
44 # Install the default routes as the lowest priority.
45 map.connect ':controller/:action/:id'
46 map.connect ':controller/:action/:id.:format'
47end