From 07fe12e65b1444f71ed6b111f459d264fc840211 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 21 Apr 2016 13:27:41 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index c0f2c9f..f497b60 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -28,7 +28,7 @@ class VehiclesController < ApplicationController # create a new vehicle def create - Vehicle.save(params) + Vehicle.new(params).save end # display a specific vehicle