diff options
author | David Gay <david@davidgay.org> | 2021-05-27 18:26:25 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-27 18:26:25 -0400 |
commit | 2c2de801b4481695f3d1b6b14527116092cb1197 (patch) | |
tree | 63656e5870438ce2b1185b198ff38ce73c5cf78c /app/controllers | |
parent | 82ebb73bb4fc53ec5af428a88809ab8f11e52c0b (diff) |
ItemsController that displays item game data
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/items_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb new file mode 100644 index 0000000..a740277 --- /dev/null +++ b/app/controllers/items_controller.rb @@ -0,0 +1,9 @@ +class ItemsController < ApplicationController + def index + @items = Item.all.order(:name) + end + + def show + @item = Item.find(params[:id]) + end +end |