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