mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | redirect to new form when successfully creating a client - allow for easier bulk creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user