mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update vehicles_controller.rb
This commit is contained in:
@@ -19,7 +19,7 @@ class VehiclesController < ApplicationController
|
||||
# display a list of all vehicles
|
||||
def index
|
||||
begin
|
||||
@vehicles = Customers.find_by_id(params[:id]).vehicles
|
||||
@vehicles = Customer.find_by_id(params[:id]).vehicles.paginate(:page => params[:page])
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user