Sha256: 401727170a582c52570d1fc87350ed98f8ca026e25b4b8080f15407229f56b00

Contents?: true

Size: 253 Bytes

Versions: 5

Compression:

Stored size: 253 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.resources :user do |user|
    user.resource :trolley, :only => :show do |trolley|
      trolley.resources :orders, :shallow => true
    end
  end
  map.resources :items, :has_many => :line_items
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trollied-0.1.4 test/full_2_3_5_app_with_tests/config/routes.rb
trollied-0.1.3 test/full_2_3_5_app_with_tests/config/routes.rb
trollied-0.1.2 test/full_2_3_5_app_with_tests/config/routes.rb
trollied-0.1.1 test/full_2_3_5_app_with_tests/config/routes.rb
trollied-0.1.0 test/full_2_3_5_app_with_tests/config/routes.rb