Sha256: 59ba6663c10fb17937e2256833eba948575f6a5d454f1d8fa679ed4a300320af

Contents?: true

Size: 226 Bytes

Versions: 2

Compression:

Stored size: 226 Bytes

Contents

Rails.application.routes.draw do

  root to: "products#index"

  resources :products do
    resources :photos

    collection do
      get 'by_category/:category' => 'products#by_category', as: :by_category
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bread-0.0.13 spec/dummy/config/routes.rb
bread-0.0.12 spec/dummy/config/routes.rb