### C0 code coverage information

Generated on Sun Aug 31 02:38:34 -0400 2008 with rcov 0.8.1.2

    Code reported as executed by Ruby looks like this...
    and this: this line is also marked as covered.
    Lines considered as run by rcov, but not reported by Ruby, look like this,
    and this: these lines were inferred by rcov (using simple heuristics).
    Finally, here's a line marked as not executed.

Name | Total lines | Lines of code | Total coverage | Code coverage
app/controllers/slides_controller.rb | `85` | `60` |
`85.9%` |
`80.0%` |

     1 class SlidesController < ApplicationController
     2   # GET /slides
     3   # GET /slides.xml
     4   def index
     5     @slides = Slide.find(:all)
     6
     7     respond_to do |format|
     8       format.html # index.html.erb
     9       format.xml  { render :xml => @slides }
    10     end
    11   end
    12
    13   # GET /slides/1
    14   # GET /slides/1.xml
    15   def show
    16     @slide = Slide.find(params[:id])
    17
    18     respond_to do |format|
    19       format.html # show.html.erb
    20       format.xml  { render :xml => @slide }
    21     end
    22   end
    23
    24   # GET /slides/new
    25   # GET /slides/new.xml
    26   def new
    27     @slide = Slide.new
    28
    29     respond_to do |format|
    30       format.html # new.html.erb
    31       format.xml  { render :xml => @slide }
    32     end
    33   end
    34
    35   # GET /slides/1/edit
    36   def edit
    37     @slide = Slide.find(params[:id])
    38   end
    39
    40   # POST /slides
    41   # POST /slides.xml
    42   def create
    43     @slide = Slide.new(params[:slide])
    44
    45     respond_to do |format|
    46       if @slide.save
    47         flash[:notice] = 'Slide was successfully created.'
    48         format.html { redirect_to(@slide) }
    49         format.xml  { render :xml => @slide, :status => :created, :location => @slide }
    50       else
    51         format.html { render :action => "new" }
    52         format.xml  { render :xml => @slide.errors, :status => :unprocessable_entity }
    53       end
    54     end
    55   end
    56
    57   # PUT /slides/1
    58   # PUT /slides/1.xml
    59   def update
    60     @slide = Slide.find(params[:id])
    61
    62     respond_to do |format|
    63       if @slide.update_attributes(params[:slide])
    64         flash[:notice] = 'Slide was successfully updated.'
    65         format.html { redirect_to(@slide) }
    66         format.xml  { head :ok }
    67       else
    68         format.html { render :action => "edit" }
    69         format.xml  { render :xml => @slide.errors, :status => :unprocessable_entity }
    70       end
    71     end
    72   end
    73
    74   # DELETE /slides/1
    75   # DELETE /slides/1.xml
    76   def destroy
    77     @slide = Slide.find(params[:id])
    78     @slide.destroy
    79
    80     respond_to do |format|
    81       format.html { redirect_to(slides_url) }
    82       format.xml  { head :ok }
    83     end
    84   end
    85 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.