OSDN Git Service

fix play
[pettanr/pettanr.git] / app / controllers / artists_controller.rb
index db1101b..f840f78 100644 (file)
@@ -30,30 +30,19 @@ class ArtistsController < ApplicationController
       show_json_format format
     end
   end
-
+  
   def count
     list_count
   end
   
   def new
-    @artist = Artist.new
-    @artist.supply_default 
-
-    respond_to do |format|
-      format.html
-      format.js
-      format.json { render json: @artist.to_json(Artist.show_json_opt) }
-    end
+    form_new
   end
-
+  
   def edit
-    @artist = Artist.edit(params[:id], @operators)
-    respond_to do |format|
-      format.html 
-      format.js
-    end
+    form_edit
   end
-
+  
   def create
     @artist = Artist.new()
     @artist.supply_default