X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fcontrollers%2Fauthors_controller.rb;h=5fd246e01523bcf505c1bc3c4be27a8b54cf1574;hb=c75552d8db3397821ffc4913bc9e465f6141b5c5;hp=dfa8feb3ab6a23cfb5dfc4d976dcf16826cfa770;hpb=63cdcd7a3c4382b00531e0b5772ae966859d8ee9;p=pettanr%2Fpettanr.git diff --git a/app/controllers/authors_controller.rb b/app/controllers/authors_controller.rb index dfa8feb3..5fd246e0 100644 --- a/app/controllers/authors_controller.rb +++ b/app/controllers/authors_controller.rb @@ -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