OSDN Git Service

t#30143:au and ar change
[pettanr/pettanr.git] / app / controllers / artists_controller.rb
index 036131b..acd5fa2 100644 (file)
@@ -84,7 +84,7 @@ class ArtistsController < ApplicationController
     @ar.overwrite @author
     respond_to do |format|
       if @ar.save
-        format.html { redirect_to @ar, notice: 'Artist was successfully created.' }
+        format.html { redirect_to root_path, notice: 'Artist was successfully created.' }
         format.json { render json: @ar.to_json(Artist.show_json_opt), status: :created, location: @artist }
       else
         format.html { render action: "new" }
@@ -102,7 +102,7 @@ class ArtistsController < ApplicationController
 
     respond_to do |format|
       if @ar.save
-        format.html { redirect_to @ar, notice: 'Artist was successfully updated.' }
+        format.html { redirect_to '/home/configure', notice: 'Artist was successfully updated.' }
         format.json { head :ok }
       else
         format.html { render action: "edit" }