POST /fetzneditions POST /fetzneditions.json
# File app/controllers/fetzneditions_controller.rb, line 43 def create @fetznedition = Fetznedition.new(params[:fetznedition]) respond_to do |format| if @fetznedition.save format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully created.' } format.json { render json: @fetznedition, status: :created, location: @fetznedition } else format.html { render action: "new" } format.json { render json: @fetznedition.errors, status: :unprocessable_entity } end end end
DELETE /fetzneditions/1 DELETE /fetzneditions/1.json
# File app/controllers/fetzneditions_controller.rb, line 75 def destroy @fetznedition = Fetznedition.find(params[:id]) @fetznedition.destroy respond_to do |format| format.html { redirect_to fetzneditions_url } format.json { head :no_content } end end
GET /fetzneditions/1/edit
# File app/controllers/fetzneditions_controller.rb, line 37 def edit @fetznedition = Fetznedition.find(params[:id]) end
# File app/controllers/fetzneditions_controller.rb, line 5 def index @fetzneditions = Fetznedition.all respond_to do |format| format.html # index.html.erb format.json { render json: @fetzneditions } end end
GET /fetzneditions/new GET /fetzneditions/new.json
# File app/controllers/fetzneditions_controller.rb, line 27 def new @fetznedition = Fetznedition.new respond_to do |format| format.html # new.html.erb format.json { render json: @fetznedition } end end
GET /fetzneditions/1 GET /fetzneditions/1.json
# File app/controllers/fetzneditions_controller.rb, line 16 def show @fetznedition = Fetznedition.find(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @fetznedition } end end
PUT /fetzneditions/1 PUT /fetzneditions/1.json
# File app/controllers/fetzneditions_controller.rb, line 59 def update @fetznedition = Fetznedition.find(params[:id]) respond_to do |format| if @fetznedition.update_attributes(params[:fetznedition]) format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully updated.' } format.json { head :no_content } else format.html { render action: "edit" } format.json { render json: @fetznedition.errors, status: :unprocessable_entity } end end end
Generated with the Darkfish Rdoc Generator 2.