lk | redirect to new form when successfully creating a client - allow for easier bulk creation

This commit is contained in:
Louis Knapp
2017-07-13 19:07:01 -05:00
parent d49f6030ed
commit a0b0fd4714
7 changed files with 25 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class ClientsController < ApplicationController
def create
@client = Client.new(client_params)
if @client.save
redirect_to edit_client_url(@client), notice: 'Client was successfully created.'
redirect_to new_client_path, notice: 'Client was successfully created.'
else
render action: 'new'
end