OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix form
[pettanr/pettanr.git]
/
app
/
controllers
/
authors_controller.rb
diff --git
a/app/controllers/authors_controller.rb
b/app/controllers/authors_controller.rb
index
dfa8feb
..
5fd246e
100644
(file)
--- a/
app/controllers/authors_controller.rb
+++ b/
app/controllers/authors_controller.rb
@@
-33,20
+33,13
@@
class AuthorsController < ApplicationController
end
def new
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
end
-
+
def edit
def edit
- @author = Author.edit(params[:id], @operators)
+ form_edit
end
end
-
+
def create
@author = Author.new()
@author.supply_default
def create
@author = Author.new()
@author.supply_default