OSDN Git Service

t#30143:au and ar change
[pettanr/pettanr.git] / app / controllers / authors_controller.rb
index f454c91..50adf08 100644 (file)
@@ -69,7 +69,7 @@ class AuthorsController < ApplicationController
     @au.overwrite @user.id
     respond_to do |format|
       if @au.save
-        format.html { redirect_to @au, notice: 'Author was successfully created.' }
+        format.html { redirect_to root_path, notice: 'Author was successfully created.' }
         format.json { render json: @au.to_json(Author.show_json_opt), status: :created, location: @artist }
       else
         format.html { render action: "new" }
@@ -85,7 +85,7 @@ class AuthorsController < ApplicationController
 
     respond_to do |format|
       if @au.save
-        format.html { redirect_to @au, notice: 'Author was successfully updated.' }
+        format.html { redirect_to '/home/configure', notice: 'Author was successfully updated.' }
         format.json { head :ok }
       else
         format.html { render action: "edit" }