tap/config/routes.rb
2014-12-10 01:03:22 +01:00

12 lines
186 B
Ruby

Rails.application.routes.draw do
root "orders#index"
devise_for :users
resources :users do
resources :orders, only: [:new, :create, :index]
end
resources :products
end