Sha256: d69edfdccb37ab7db018a0ed94b2877e3a625ea4174fe7250852e140567dce70

Contents?: true

Size: 1.62 KB

Versions: 12

Compression:

Stored size: 1.62 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
  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

12 entries across 12 versions & 5 rubygems

Version Path
akitaonrails-resource_controller-0.5.2 test/config/routes.rb
giraffesoft-resource_controller-0.4.10 test/config/routes.rb
giraffesoft-resource_controller-0.4.12 test/config/routes.rb
giraffesoft-resource_controller-0.5.2 test/config/routes.rb
giraffesoft-resource_controller-0.5.3 test/config/routes.rb
nileshtrivedi-lp_resource_builder-0.5.1 test/config/routes.rb
resource_controller-0.5.0 test/config/routes.rb
resource_controller-0.5.1 test/config/routes.rb
resource_controller-0.5.2 test/config/routes.rb
resource_controller-0.5.3 test/config/routes.rb
spree-0.4.1 vendor/plugins/resource_controller/test/config/routes.rb
spree-0.4.0 vendor/plugins/resource_controller/test/config/routes.rb