Sha256: cef9e2ffb7f6156f695d2b908b1853b477cb96865791a74580c267f0df7f9dda

Contents?: true

Size: 1.7 KB

Versions: 44

Compression:

Stored size: 1.7 KB

Contents

ActionController::Routing::Routes.draw do |map|
  map.resources :projects

  map.resources :people
  
  map.resources :dudes, :controller => "users"

  map.resources :users do |user|
    user.resources :photos, :name_prefix => "user_"
    user.resource :image
  end

  map.resources :somethings

  map.resources :photos do |photo|
    photo.resources :tags, :name_prefix => "photo_"
  end
  
  map.resources :tags
  
  map.namespace :cms do |cms|
    cms.resources :products, :has_many => :options
    cms.resources :personnel do |personnel|
      personnel.resources :photos
    end
  end

  map.resources :posts do |post|
    post.resources :comments, :name_prefix => "post_"
  end
  
  map.resources :comments
  
  map.resource :account, :has_many => :options
  
  map.resource :image
  
  map.resources :options
  
  # The priority is based upon order of creation: first created -> highest priority.
  
  # Sample of regular route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # You can have the root of your site routed by hooking up '' 
  # -- just remember to delete public/index.html.
  # map.connect '', :controller => "welcome"

  # Allow downloading Web Service WSDL as a file with an extension
  # instead of a file named 'wsdl'
  map.connect ':controller/service.wsdl', :action => 'wsdl'

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id.:format'
  map.connect ':controller/:action/:id'
end

Version data entries

44 entries across 44 versions & 18 rubygems

Version Path
akitaonrails-resource_controller-0.5.3 test/config/routes.rb
csmosx-resource_controller-0.6.6 test/config/routes.rb
csmosx-resource_controller-0.6.7 test/config/routes.rb
dkubb-resource_controller-0.6.5 test/config/routes.rb
giraffesoft-resource_controller-0.5.5 test/config/routes.rb
giraffesoft-resource_controller-0.5.6 test/config/routes.rb
giraffesoft-resource_controller-0.6.0 test/config/routes.rb
giraffesoft-resource_controller-0.6.1 test/config/routes.rb
giraffesoft-resource_controller-0.6.5 test/config/routes.rb
jeffrafter-resource_controller-0.5.5 test/config/routes.rb
kdmny-spree-0.0.1 vendor/plugins/resource_controller/test/config/routes.rb
korin-resource_controller-0.5.3 test/config/routes.rb
maser-resource_controller-0.6.6 test/config/routes.rb
nileshtrivedi-lp_resource_builder-0.5.3 test/config/routes.rb
nileshtrivedi-safe_resource-0.5.3 test/config/routes.rb
radar-resource_controller-0.6.6 test/config/routes.rb
strikeroff-resource_controller-0.6.6 test/config/routes.rb
viva-resource_controller-0.6.5.1 test/config/routes.rb
viva-resource_controller-0.6.5.2 test/config/routes.rb
viva-resource_controller-0.6.5 test/config/routes.rb