Assembla home | Assembla project page
 

root/trunk/rails/config/routes.rb

Revision 10, 1.6 kB (checked in by battlehorse, 7 months ago)

Fixes #18 : tags browsing

Line 
1 ActionController::Routing::Routes.draw do |map|
2
3   map.resources :flickr_users
4  
5   map.resources :flickr_users, :has_many => :photosets   
6   map.resources :photosets, :has_many => :photos
7   map.resources :tags
8
9   # The priority is based upon order of creation: first created -> highest priority.
10
11   # Sample of regular route:
12   #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
13   # Keep in mind you can assign values other than :controller and :action
14
15   # Sample of named route:
16   #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
17   # This route can be invoked with purchase_url(:id => product.id)
18
19   # Sample resource route (maps HTTP verbs to controller actions automatically):
20   #   map.resources :products
21
22   # Sample resource route with options:
23   #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
24
25   # Sample resource route with sub-resources:
26   #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
27
28   # Sample resource route within a namespace:
29   #   map.namespace :admin do |admin|
30   #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
31   #     admin.resources :products
32   #   end
33
34   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
35   # map.root :controller => "welcome"
36   map.root :controller => "home"
37
38   # See how all your routes lay out with "rake routes"
39
40   # Install the default routes as the lowest priority.
41   map.connect ':controller/:action/:id'
42   map.connect ':controller/:action/:id.:format'
43 end
Note: See TracBrowser for help on using the browser.