app/controllers/invoices_controller.rb
def search
    prepare_search_dates if params[:search]
    params[:search] ||= {}
    @invoices = Invoice.search(params[:search])
    render :partial => '/invoices/list'
  end
#
# Searches through invoices, presenting list of results
#
Searches through invoices, presenting list of results
Searches through invoices presenting list of results
def search
    prepare_search_dates if params[:search]
    params[:search] ||= {}
    @invoices = Invoice.search(params[:search])
    render :partial => '/invoices/list'
  end
def search prepare_search_dates if params [ :search ] params [ :search ] ||= { } @invoices = Invoice . search ( params [ :search ] ) render :partial => '/invoices/list' end
Searches through invoices, presenting list of results
Searches through invoices presenting list of results