diff options
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 |