Class RankAlgorithmsController
In: app/controllers/rank_algorithms_controller.rb
Parent: ApplicationController

Methods

create   destroy   edit   index   list   new   show   update  

Public Instance methods

POST /rank_algorithms POST /rank_algorithms.xml

[Source]

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

DELETE /rank_algorithms/1 DELETE /rank_algorithms/1.xml

[Source]

    # File app/controllers/rank_algorithms_controller.rb, line 79
79:   def destroy
80:     @rank_algorithm = RankAlgorithm.find(params[:id])
81:     @rank_algorithm.destroy
82:   
83:     respond_to do |format|
84:       format.html { redirect_to(rank_algorithms_url) }
85:       format.xml  { head :ok }
86:     end
87:   end

GET /rank_algorithms/1/edit

[Source]

    # File app/controllers/rank_algorithms_controller.rb, line 39
39:   def edit
40:     @rank_algorithm = RankAlgorithm.find(params[:id])
41:   end

GET /rank_algorithms GET /rank_algorithms.xml

[Source]

    # File app/controllers/rank_algorithms_controller.rb, line 7
 7:   def index
 8:     @rank_algorithms = RankAlgorithm.find(:all)
 9:   
10:     respond_to do |format|
11:       format.html # index.html.erb
12:       format.xml  { render :xml => @rank_algorithms }
13:     end
14:   end

GET /rank_algorithms/list

[Source]

    # File app/controllers/rank_algorithms_controller.rb, line 90
90:   def list
91:     @algorithms = RankAlgorithm.all
92:   end

GET /rank_algorithms/new GET /rank_algorithms/new.xml

[Source]

    # File app/controllers/rank_algorithms_controller.rb, line 29
29:   def new
30:     @rank_algorithm = RankAlgorithm.new
31:   
32:     respond_to do |format|
33:       format.html # new.html.erb
34:       format.xml  { render :xml => @rank_algorithm }
35:     end
36:   end

GET /rank_algorithms/1 GET /rank_algorithms/1.xml

[Source]

    # File app/controllers/rank_algorithms_controller.rb, line 18
18:   def show
19:     @rank_algorithm = RankAlgorithm.find(params[:id])
20:   
21:     respond_to do |format|
22:       format.html # show.html.erb
23:       format.xml  { render :xml => @rank_algorithm }
24:     end
25:   end

PUT /rank_algorithms/1 PUT /rank_algorithms/1.xml

[Source]

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

[Validate]