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
|
# display a list of all vehicles
|
||||||
def index
|
def index
|
||||||
begin
|
begin
|
||||||
@vehicles = Customers.find_by_id(params[:id]).vehicles
|
@vehicles = Customer.find_by_id(params[:id]).vehicles.paginate(:page => params[:page])
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
render_404
|
render_404
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user