Class | IgradesController
In: | app/controllers/igrades_controller.rb
Parent: | ApplicationController

### Methods

create destroy edit index new show update

### Public Instance methods

create()

POST /igrades POST /igrades.xml

[Source]

        # File app/controllers/igrades_controller.rb, line 42
    42:   def create
    43:     @igrade = Igrade.new(params[:igrade])
    44:
    45:     respond_to do |format|
    46:       if @igrade.save
    47:         flash[:notice] = 'Igrade was successfully created.'
    48:         format.html { redirect_to(@igrade) }
    49:         format.xml  { render :xml => @igrade, :status => :created, :location => @igrade }
    50:       else
    51:         format.html { render :action => "new" }
    52:         format.xml  { render :xml => @igrade.errors, :status => :unprocessable_entity }
    53:       end
    54:     end
    55:   end

destroy()

DELETE /igrades/1 DELETE /igrades/1.xml

[Source]

        # File app/controllers/igrades_controller.rb, line 76
    76:   def destroy
    77:     @igrade = Igrade.find(params[:id])
    78:     @igrade.destroy
    79:
    80:     respond_to do |format|
    81:       format.html { redirect_to(igrades_url) }
    82:       format.xml  { head :ok }
    83:     end
    84:   end

edit()

GET /igrades/1/edit

[Source]

        # File app/controllers/igrades_controller.rb, line 36
    36:   def edit
    37:     @igrade = Igrade.find(params[:id])
    38:   end

index()

GET /igrades GET /igrades.xml

[Source]

        # File app/controllers/igrades_controller.rb, line 4
     4:   def index
     5:     @igrades = Igrade.all
     6:
     7:     respond_to do |format|
     8:       format.html # index.html.erb
     9:       format.xml  { render :xml => @igrades }
    10:     end
    11:   end

new()

GET /igrades/new GET /igrades/new.xml

[Source]

        # File app/controllers/igrades_controller.rb, line 26
    26:   def new
    27:     @igrade = Igrade.new
    28:
    29:     respond_to do |format|
    30:       format.html # new.html.erb
    31:       format.xml  { render :xml => @igrade }
    32:     end
    33:   end

show()

GET /igrades/1 GET /igrades/1.xml

[Source]

        # File app/controllers/igrades_controller.rb, line 15
    15:   def show
    16:     @igrade = Igrade.find(params[:id])
    17:
    18:     respond_to do |format|
    19:       format.html # show.html.erb
    20:       format.xml  { render :xml => @igrade }
    21:     end
    22:   end

update()

PUT /igrades/1 PUT /igrades/1.xml

[Source]

        # File app/controllers/igrades_controller.rb, line 59
    59:   def update
    60:     @igrade = Igrade.find(params[:id])
    61:
    62:     respond_to do |format|
    63:       if @igrade.update_attributes(params[:igrade])
    64:         flash[:notice] = 'Igrade was successfully updated.'
    65:         format.html { redirect_to(@igrade) }
    66:         format.xml  { head :ok }
    67:       else
    68:         format.html { render :action => "edit" }
    69:         format.xml  { render :xml => @igrade.errors, :status => :unprocessable_entity }
    70:       end
    71:     end
    72:   end

[Validate]