Commit e5b613e8 authored by April Guian's avatar April Guian

search for platenumber instead of id number

parent b9a1b779
......@@ -4,7 +4,7 @@ class CarLogsController < ApplicationController
@records = CarLog.all
if params[:q].present?
@records = CarLog.where(id: params[:q])
@records = CarLog.where(plate_number: params[:q])
end
render "car_logs/index.html.erb"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment