OSDN Git Service

fix form
[pettanr/pettanr.git] / app / controllers / authors_controller.rb
index dfa8feb..5fd246e 100644 (file)
@@ -33,20 +33,13 @@ class AuthorsController < ApplicationController
   end
   
   def new
-    @author = Author.new
-    @author.supply_default 
-
-    respond_to do |format|
-      format.html
-      format.js
-      format.json { render json: @au.to_json(Author.show_json_opt) }
-    end
+    form_new
   end
-
+  
   def edit
-    @author = Author.edit(params[:id], @operators)
+    form_edit
   end
-
+  
   def create
     @author = Author.new()
     @author.supply_default