Class/Module Index [+]

Quicksearch

FetzneditionsController

Public Instance Methods

create() click to toggle source

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
destroy() click to toggle source

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
edit() click to toggle source

GET /fetzneditions/1/edit

# File app/controllers/fetzneditions_controller.rb, line 37
def edit
  @fetznedition = Fetznedition.find(params[:id])
end
index() click to toggle source
# 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
new() click to toggle source

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
show() click to toggle source

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
update() click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.