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
+4
+4
View File
@@ -18,8 +18,12 @@ class CustomersController < ApplicationController
# display a list of all customers
def index
if params[:search]
@customers = Customer.search(params[:search]).paginate(:page => params[:page])
else
@customers = Customer.paginate(:page => params[:page])
end
end
def new
@customer = Customer.new