mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Search
This commit is contained in:
@@ -18,8 +18,12 @@ class CustomersController < ApplicationController
|
|||||||
|
|
||||||
# display a list of all customers
|
# display a list of all customers
|
||||||
def index
|
def index
|
||||||
|
if params[:search]
|
||||||
|
@customers = Customer.search(params[:search]).paginate(:page => params[:page])
|
||||||
|
else
|
||||||
@customers = Customer.paginate(:page => params[:page])
|
@customers = Customer.paginate(:page => params[:page])
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@customer = Customer.new
|
@customer = Customer.new
|
||||||
|
|||||||
Reference in New Issue
Block a user