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:
@@ -56,6 +56,7 @@ class VehiclesController < ApplicationController
|
||||
|
||||
# update a specific vehicle
|
||||
def update
|
||||
@customers = Customer.all.order(:name)
|
||||
@vehicle = Vehicle.find_by_id(params[:id])
|
||||
if @vehicle.update_attributes(params[:vehicle])
|
||||
flash[:success] = "Vehicle updated"
|
||||
|
||||
Reference in New Issue
Block a user