From a2cc7a97fdb74689f70daf78040f5511f46b8b97 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 15 Mar 2026 18:57:48 -0400 Subject: [PATCH] Added comment --- app/controllers/items_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index 09b8dd0..5aff56e 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -12,6 +12,7 @@ class ItemsController < ApplicationController before_action :require_login before_action :find_item, only: [:show, :edit, :update, :destroy] + # Used for autocomplete form def autocomplete term = ActiveRecord::Base.sanitize_sql_like(params[:q].to_s) @@ -43,7 +44,7 @@ class ItemsController < ApplicationController def edit end - def index + def index @items = Item.order(:name) end