mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update vehicles_controller.rb
This commit is contained in:
@@ -47,7 +47,7 @@ class VehiclesController < ApplicationController
|
|||||||
# update a specific vehicle
|
# update a specific vehicle
|
||||||
def update
|
def update
|
||||||
@vehicle = Vehicle.find_by_id(params[:id])
|
@vehicle = Vehicle.find_by_id(params[:id])
|
||||||
if @vehicle.update_attributes(params)
|
if @vehicle.update_attributes(params[:vehicle])
|
||||||
flash[:success] = "Vehicle updated"
|
flash[:success] = "Vehicle updated"
|
||||||
redirect_to @vehicle
|
redirect_to @vehicle
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user