This commit is contained in:
ricky authored and GitHub committed 2016-07-28 20:44:15 -04:00
1 parent bee48c4f0f
commit fb1a560751
1 file changed
+5 -1
+5 -1
View File
@@ -18,7 +18,11 @@ class CustomersController < ApplicationController
# display a list of all customers # display a list of all customers
def index def index
@customers = Customer.paginate(:page => params[:page]) if params[:search]
@customers = Customer.search(params[:search]).paginate(:page => params[:page])
else
@customers = Customer.paginate(:page => params[:page])
end
end end
def new def new