From 1b2de86007508ba86c6c9cb99fbdcac178045131 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 2 May 2021 22:38:32 -0400 Subject: Character items and inventory, with ability to add and remove items --- config/routes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index e048a85..bd5793e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,5 +11,9 @@ Rails.application.routes.draw do put "users", to: "devise/registrations#update", as: "user_registration" end - resources :characters, only: [:show, :new, :create] + resources :characters, only: [:show, :new, :create] do + scope module: :characters do + resources :items, only: [:index] + end + end end -- cgit v1.2.3