C0 code coverage information
Generated on Tue Dec 04 22:06:26 -0500 2007 with rcov 0.8.0
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.
1 #####
2 #
3 # Copyright 2007 Chris Strom, Robin Strom
4 #
5 # This file is part of EEE Code.
6 #
7 # EEE Code is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # EEE Code is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with EEE Code. If not, see <http://www.gnu.org/licenses/>.
19 #
20 class HomeController < ApplicationController
21 layout "home"
22
23 caches_action :index
24
25 def index
26 @meals = Meal.newest(13)
27 @old_meals = @meals.slice!(-3, 3)
28 @featured_ingredient = Ingredient.find_by_name('arugula')
29 end
30
31 def about
32 render :layout => 'master'
33 end
34
35 def who
36 render :layout => 'master'
37 end
38
39 def feedback
40 @subject = params[:subject]
41 @uri = params[:uri]
42 end
43
44 def email
45 feedback = {
46 :name => params[:name],
47 :email => params[:email],
48 :subject => params[:subject],
49 :uri => params[:uri],
50 :message => params[:message]
51 }
52 SiteMailer.deliver_feedback(feedback)
53 end
54
55 def mailing_lists
56 end
57
58 def mailing_lists_subscribe
59 subscription = {:list => params[:list], :email => params[:email]}
60 SiteMailer.deliver_mailing_lists_subscribe(subscription)
61 end
62
63 def interstitial
64 @redirect_delay = 5
65 @redirect_url = url_for(:controller => 'home', :action => 'index')
66 if flash.empty?
67 redirect_to :action => 'index'
68 end
69 end
70 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.