12 lines
186 B
Ruby
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
|