Browse files

This is not a logical commit, but I need to clean up the mess, so com…

…mit everything
  • Loading branch information...
1 parent 040e906 commit 256de944f8783209af6b2c04cc57f77692d5e699 @mjacobsz committed Mar 1, 2011
View
4 Gemfile
@@ -17,6 +17,10 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'ruby-debug'
# gem 'ruby-debug19'
+# To test their functionality, include the next gems
+gem 'delayed_job'
+gem 'rack-oauth2-server', :git => "https://github.com/flowtown/rack-oauth2-server.git"
+
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
View
24 Gemfile.lock
@@ -1,3 +1,13 @@
+GIT
+ remote: https://github.com/flowtown/rack-oauth2-server.git
+ revision: 3902a9d7ccbf437f733cfff10e28133285c8ba46
+ specs:
+ rack-oauth2-server (2.2.0)
+ bson_ext
+ mongo (~> 1)
+ rack (~> 1.1)
+ sinatra (~> 1.1)
+
GEM
remote: http://rubygems.org/
specs:
@@ -29,7 +39,13 @@ GEM
activesupport (= 3.0.3)
activesupport (3.0.3)
arel (2.0.7)
+ bson (1.2.4)
+ bson_ext (1.2.4)
builder (2.1.2)
+ daemons (1.1.0)
+ delayed_job (2.1.4)
+ activesupport (~> 3.0)
+ daemons
erubis (2.6.6)
abstract (>= 1.0.0)
i18n (0.5.0)
@@ -39,6 +55,8 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
+ mongo (1.2.4)
+ bson (>= 1.2.4)
polyglot (0.3.1)
rack (1.2.1)
rack-mount (0.6.13)
@@ -59,10 +77,14 @@ GEM
rake (>= 0.8.7)
thor (~> 0.14.4)
rake (0.8.7)
+ sinatra (1.1.3)
+ rack (~> 1.1)
+ tilt (>= 1.2.2, < 2.0)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
sqlite3 (>= 1.3.3)
thor (0.14.6)
+ tilt (1.2.2)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.24)
@@ -71,5 +93,7 @@ PLATFORMS
ruby
DEPENDENCIES
+ delayed_job
+ rack-oauth2-server!
rails (= 3.0.3)
sqlite3-ruby
View
13 app/controllers/home_controller.rb
@@ -1,5 +1,18 @@
+require "heater"
+
class HomeController < ApplicationController
def index
+ puts "Heating stuff up"
+ h = Heater.new
+ # h.do_this_now
+ h.do_this_later
+
+ # first_user = User.first
+ # @user_url = user_url(first_user)
+
+ #Delayed::Job.enqueue( h, {:run_at => 2.minutes.from_now} )
+ #Delayed::Job.enqueue( h )
+ #Delayed::Job.enqueue Heater.new
end
end
View
83 app/controllers/users_controller.rb
@@ -0,0 +1,83 @@
+class UsersController < ApplicationController
+ # GET /users
+ # GET /users.xml
+ def index
+ @users = User.all
+
+ respond_to do |format|
+ format.html # index.html.erb
+ format.xml { render :xml => @users }
+ end
+ end
+
+ # GET /users/1
+ # GET /users/1.xml
+ def show
+ @user = User.find(params[:id])
+
+ respond_to do |format|
+ format.html # show.html.erb
+ format.xml { render :xml => @user }
+ end
+ end
+
+ # GET /users/new
+ # GET /users/new.xml
+ def new
+ @user = User.new
+
+ respond_to do |format|
+ format.html # new.html.erb
+ format.xml { render :xml => @user }
+ end
+ end
+
+ # GET /users/1/edit
+ def edit
+ @user = User.find(params[:id])
+ end
+
+ # POST /users
+ # POST /users.xml
+ def create
+ @user = User.new(params[:user])
+
+ respond_to do |format|
+ if @user.save
+ format.html { redirect_to(@user, :notice => 'User was successfully created.') }
+ format.xml { render :xml => @user, :status => :created, :location => @user }
+ else
+ format.html { render :action => "new" }
+ format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # PUT /users/1
+ # PUT /users/1.xml
+ def update
+ @user = User.find(params[:id])
+
+ respond_to do |format|
+ if @user.update_attributes(params[:user])
+ format.html { redirect_to(@user, :notice => 'User was successfully updated.') }
+ format.xml { head :ok }
+ else
+ format.html { render :action => "edit" }
+ format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
+ end
+ end
+ end
+
+ # DELETE /users/1
+ # DELETE /users/1.xml
+ def destroy
+ @user = User.find(params[:id])
+ @user.destroy
+
+ respond_to do |format|
+ format.html { redirect_to(users_url) }
+ format.xml { head :ok }
+ end
+ end
+end
View
2 app/helpers/users_helper.rb
@@ -0,0 +1,2 @@
+module UsersHelper
+end
View
7 app/mailers/marvin_mailer.rb
@@ -1,3 +1,10 @@
class MarvinMailer < ActionMailer::Base
default :from => "marvin@tty.nl"
+
+ def welcome_email(user)
+ @user = user
+ @url = "http://vleesboek.nl"
+ mail (:to => user.email, :subject => "Welcome = that was an equals sign =, one more =, ,=")
+ end
+
end
View
2 app/models/user.rb
@@ -0,0 +1,2 @@
+class User < ActiveRecord::Base
+end
View
1 app/views/home/index.html.erb
@@ -1,3 +1,4 @@
<h1>Yazuuurrrr</h1>
<p>Find me in app/views/home/index.html.erb</p>
+<p>Je weet zelluf: <%= @user_url %></p>
<%= link_to "Vette posts over dit vette spel", posts_path %>
View
18 app/views/marvin_mailer/welcome_email.html.erb
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
+ </head>
+ <body>
+ <h1>Welcome to vleesboek.nl, <%= @user.name %></h1>
+ <p>
+ You have successfully signed up to vleesboek.nl, which is an excellent choice.
+ You must be very smart. And if you are a girl, you are probably very pretty too.
+ Your username is: <%= @user.login %>.<br/>
+ </p>
+ <p>
+ To login to the site, just follow this link: <%= @url %>.
+ </p>
+ <p>Thanks for joining and have a great day!</p>
+ </body>
+</html>
View
10 app/views/marvin_mailer/welcome_email.txt.erb
@@ -0,0 +1,10 @@
+Welcome to vleesboek.nl, <%= @user.name %>
+==========================================
+You have successfully signed up to vleesboek.nl, which is an excellent choice.
+You must be very smart. And when you are a girl, you are probably very pretty too.
+
+Your username is: <%= @user.login %>
+
+To login to the site, just follow this link: <%= @url %>.
+
+Thanks for joining and have a great day!
View
29 app/views/users/_form.html.erb
@@ -0,0 +1,29 @@
+<%= form_for(@user) do |f| %>
+ <% if @user.errors.any? %>
+ <div id="error_explanation">
+ <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
+
+ <ul>
+ <% @user.errors.full_messages.each do |msg| %>
+ <li><%= msg %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div class="field">
+ <%= f.label :name %><br />
+ <%= f.text_field :name %>
+ </div>
+ <div class="field">
+ <%= f.label :email %><br />
+ <%= f.text_field :email %>
+ </div>
+ <div class="field">
+ <%= f.label :login %><br />
+ <%= f.text_field :login %>
+ </div>
+ <div class="actions">
+ <%= f.submit %>
+ </div>
+<% end %>
View
6 app/views/users/edit.html.erb
@@ -0,0 +1,6 @@
+<h1>Editing user</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Show', @user %> |
+<%= link_to 'Back', users_path %>
View
27 app/views/users/index.html.erb
@@ -0,0 +1,27 @@
+<h1>Listing users</h1>
+
+<table>
+ <tr>
+ <th>Name</th>
+ <th>Email</th>
+ <th>Login</th>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+
+<% @users.each do |user| %>
+ <tr>
+ <td><%= user.name %></td>
+ <td><%= user.email %></td>
+ <td><%= user.login %></td>
+ <td><%= link_to 'Show', user %></td>
+ <td><%= link_to 'Edit', edit_user_path(user) %></td>
+ <td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
+ </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New User', new_user_path %>
View
5 app/views/users/new.html.erb
@@ -0,0 +1,5 @@
+<h1>New user</h1>
+
+<%= render 'form' %>
+
+<%= link_to 'Back', users_path %>
View
20 app/views/users/show.html.erb
@@ -0,0 +1,20 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+ <b>Name:</b>
+ <%= @user.name %>
+</p>
+
+<p>
+ <b>Email:</b>
+ <%= @user.email %>
+</p>
+
+<p>
+ <b>Login:</b>
+ <%= @user.login %>
+</p>
+
+
+<%= link_to 'Edit', edit_user_path(@user) %> |
+<%= link_to 'Back', users_path %>
View
2 config/application.rb
@@ -13,7 +13,7 @@ class Application < Rails::Application
# -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable.
- # config.autoload_paths += %W(#{config.root}/extras)
+ config.autoload_paths += %W(lib)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
View
2 config/routes.rb
@@ -1,4 +1,6 @@
Lingu::Application.routes.draw do
+ resources :users
+
resources :posts
get "home/index"
View
BIN db/development.sqlite3
Binary file not shown.
View
15 db/migrate/20110222112755_create_users.rb
@@ -0,0 +1,15 @@
+class CreateUsers < ActiveRecord::Migration
+ def self.up
+ create_table :users do |t|
+ t.string :name
+ t.string :email
+ t.string :login
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :users
+ end
+end
View
21 db/migrate/20110223095254_create_delayed_jobs.rb
@@ -0,0 +1,21 @@
+class CreateDelayedJobs < ActiveRecord::Migration
+ def self.up
+ create_table :delayed_jobs, :force => true do |table|
+ table.integer :priority, :default => 0 # Allows some jobs to jump to the front of the queue
+ table.integer :attempts, :default => 0 # Provides for retries, but still fail eventually.
+ table.text :handler # YAML-encoded string of the object that will do work
+ table.text :last_error # reason for last failure (See Note below)
+ table.datetime :run_at # When to run. Could be Time.zone.now for immediately, or sometime in the future.
+ table.datetime :locked_at # Set when a client is working on this object
+ table.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead)
+ table.string :locked_by # Who is working on this object (if locked)
+ table.timestamps
+ end
+
+ add_index :delayed_jobs, [:priority, :run_at], :name => 'delayed_jobs_priority'
+ end
+
+ def self.down
+ drop_table :delayed_jobs
+ end
+end
View
97 db/schema.rb
@@ -10,7 +10,94 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110207113341) do
+ActiveRecord::Schema.define(:version => 20110223095254) do
+
+ create_table "apn_apps", :force => true do |t|
+ t.text "apn_dev_cert"
+ t.text "apn_prod_cert"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "apn_device_groupings", :force => true do |t|
+ t.integer "group_id"
+ t.integer "device_id"
+ end
+
+ add_index "apn_device_groupings", ["device_id"], :name => "index_apn_device_groupings_on_device_id"
+ add_index "apn_device_groupings", ["group_id", "device_id"], :name => "index_apn_device_groupings_on_group_id_and_device_id"
+ add_index "apn_device_groupings", ["group_id"], :name => "index_apn_device_groupings_on_group_id"
+
+ create_table "apn_devices", :force => true do |t|
+ t.string "token", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.datetime "last_registered_at"
+ t.integer "app_id"
+ end
+
+ add_index "apn_devices", ["token"], :name => "index_apn_devices_on_token"
+
+ create_table "apn_group_notifications", :force => true do |t|
+ t.integer "group_id", :null => false
+ t.string "device_language"
+ t.string "sound"
+ t.string "alert"
+ t.integer "badge"
+ t.text "custom_properties"
+ t.datetime "sent_at"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "apn_group_notifications", ["group_id"], :name => "index_apn_group_notifications_on_group_id"
+
+ create_table "apn_groups", :force => true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.integer "app_id"
+ end
+
+ create_table "apn_notifications", :force => true do |t|
+ t.integer "device_id", :null => false
+ t.integer "errors_nb", :default => 0
+ t.string "device_language"
+ t.string "sound"
+ t.string "alert"
+ t.integer "badge"
+ t.datetime "sent_at"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.text "custom_properties"
+ end
+
+ add_index "apn_notifications", ["device_id"], :name => "index_apn_notifications_on_device_id"
+
+ create_table "apn_pull_notifications", :force => true do |t|
+ t.integer "app_id"
+ t.string "title"
+ t.string "content"
+ t.string "link"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.boolean "launch_notification"
+ end
+
+ create_table "delayed_jobs", :force => true do |t|
+ t.integer "priority", :default => 0
+ t.integer "attempts", :default => 0
+ t.text "handler"
+ t.text "last_error"
+ t.datetime "run_at"
+ t.datetime "locked_at"
+ t.datetime "failed_at"
+ t.string "locked_by"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
create_table "posts", :force => true do |t|
t.string "name"
@@ -20,4 +107,12 @@
t.datetime "updated_at"
end
+ create_table "users", :force => true do |t|
+ t.string "name"
+ t.string "email"
+ t.string "login"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
end
View
28 lib/heater.rb
@@ -0,0 +1,28 @@
+class Heater
+ attr_accessor :current_temperature
+
+ def initialize(initial_temperature = 0)
+ @current_temperature = initial_temperature
+ end
+
+ def perform
+ puts "I am a heater, but i don't complain"
+ File.open("/Users/marvin/tmp/showme", 'w')
+ end
+
+ def holla_path
+ puts #{RAILS_ROOT}
+ end
+
+ # def do_this_now
+ # puts "I'm doin' it!"
+ # end
+ #
+ def do_this_later
+ puts "I did something"
+ File.open("/Users/marvin/tmp/show_me_please", 'w')
+ User.create( :name => "Delayed_MOFO" )
+ end
+ handle_asynchronously :do_this_later, :run_at => Proc.new { 1.minute.from_now }
+
+end
View
6 log/delayed_job.log
@@ -0,0 +1,6 @@
+# Logfile created on Wed Feb 23 15:25:45 +0100 2011 by logger.rb/22285
+2011-02-23T15:25:45+0100: [Worker(delayed_job host:marvin-mac.local pid:4109)] Starting job worker
+2011-02-23T15:27:10+0100: [Worker(delayed_job host:marvin-mac.local pid:4109)] Heater#do_this_later_without_delay completed after 0.1124
+2011-02-23T15:27:10+0100: [Worker(delayed_job host:marvin-mac.local pid:4109)] 1 jobs processed at 7.6149 j/s, 0 failed ...
+2011-02-23T18:24:48+0100: [Worker(delayed_job host:marvin-mac.local pid:4109)] Exiting...
+2011-02-23T18:24:48+0100: [Worker(delayed_job host:marvin-mac.local pid:4109)] Exiting...
View
849 log/development.log
@@ -111,3 +111,852 @@ Started GET "/" for 127.0.0.1 at Wed Feb 09 17:26:36 +0100 2011
Processing by HomeController#index as HTML
Rendered home/index.html.erb within layouts/application (3.7ms)
Completed 200 OK in 107ms (Views: 106.2ms | ActiveRecord: 0.0ms)
+ SQL (0.6ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ SQL (0.2ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ SQL (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
+Migrating to CreatePosts (20110207113341)
+Migrating to CreateApnDevices (20110214161218)
+ SQL (0.1ms) select sqlite_version(*)
+ SQL (0.7ms) CREATE TABLE "apn_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161218')
+Migrating to CreateApnNotifications (20110214161219)
+ SQL (0.7ms) CREATE TABLE "apn_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer NOT NULL, "errors_nb" integer DEFAULT 0, "device_language" varchar(255), "sound" varchar(255), "alert" varchar(255), "badge" integer, "sent_at" datetime, "created_at" datetime, "updated_at" datetime) 
+ SQL (0.1ms) PRAGMA index_list("apn_notifications")
+ SQL (0.2ms) CREATE INDEX "index_apn_notifications_on_device_id" ON "apn_notifications" ("device_id")
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161219')
+Migrating to AlterApnDevices (20110214161220)
+ SQL (21.3ms) ALTER TABLE "apn_devices" ADD "last_registered_at" datetime
+ AlterApnDevices::APN::Device Load (0.2ms) SELECT "apn_devices".* FROM "apn_devices"
+ SQL (0.7ms) CREATE TEMPORARY TABLE "altered_apn_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" text NOT NULL, "created_at" datetime, "updated_at" datetime, "last_registered_at" datetime) 
+ SQL (0.1ms) PRAGMA index_list("apn_devices")
+ SQL (0.5ms) DROP TABLE "apn_devices"
+ SQL (0.2ms) CREATE TABLE "apn_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime, "last_registered_at" datetime)
+ SQL (0.0ms) PRAGMA index_list("altered_apn_devices")
+ SQL (0.5ms) DROP TABLE "altered_apn_devices"
+ SQL (0.1ms) PRAGMA index_list("apn_devices")
+ SQL (0.3ms) CREATE UNIQUE INDEX "index_apn_devices_on_token" ON "apn_devices" ("token")
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161220')
+Migrating to CreateApnApps (20110214161221)
+ SQL (0.6ms) CREATE TABLE "apn_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "apn_dev_cert" text, "apn_prod_cert" text, "created_at" datetime, "updated_at" datetime)
+ SQL (0.4ms) ALTER TABLE "apn_devices" ADD "app_id" integer
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161221')
+Migrating to CreateGroups (20110214161222)
+ SQL (0.6ms) CREATE TABLE "apn_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
+ SQL (0.2ms) CREATE TABLE "apn_devices_apn_groups" ("group_id" integer, "device_id" integer)
+ SQL (0.1ms) PRAGMA index_list("apn_devices_apn_groups")
+ SQL (0.2ms) CREATE INDEX "index_apn_devices_apn_groups_on_group_id_and_device_id" ON "apn_devices_apn_groups" ("group_id", "device_id")
+ SQL (0.1ms) PRAGMA index_list("apn_devices_apn_groups")
+ SQL (0.1ms) PRAGMA index_info('index_apn_devices_apn_groups_on_group_id_and_device_id')
+ SQL (0.2ms) CREATE INDEX "index_apn_devices_apn_groups_on_device_id" ON "apn_devices_apn_groups" ("device_id")
+ SQL (0.1ms) PRAGMA index_list("apn_devices_apn_groups")
+ SQL (0.1ms) PRAGMA index_info('index_apn_devices_apn_groups_on_device_id')
+ SQL (0.1ms) PRAGMA index_info('index_apn_devices_apn_groups_on_group_id_and_device_id')
+ SQL (0.2ms) CREATE INDEX "index_apn_devices_apn_groups_on_group_id" ON "apn_devices_apn_groups" ("group_id")
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161222')
+Migrating to AlterApnGroups (20110214161223)
+ SQL (0.9ms) ALTER TABLE "apn_groups" ADD "app_id" integer
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161223')
+Migrating to CreateDeviceGroups (20110214161224)
+ SQL (1.1ms) DROP TABLE "apn_devices_apn_groups"
+ SQL (0.5ms) CREATE TABLE "apn_device_groupings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer, "device_id" integer)
+ SQL (0.1ms) PRAGMA index_list("apn_device_groupings")
+ SQL (0.3ms) CREATE INDEX "index_apn_device_groupings_on_group_id_and_device_id" ON "apn_device_groupings" ("group_id", "device_id")
+ SQL (0.1ms) PRAGMA index_list("apn_device_groupings")
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_group_id_and_device_id')
+ SQL (0.2ms) CREATE INDEX "index_apn_device_groupings_on_device_id" ON "apn_device_groupings" ("device_id")
+ SQL (0.1ms) PRAGMA index_list("apn_device_groupings")
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_device_id')
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_group_id_and_device_id')
+ SQL (0.2ms) CREATE INDEX "index_apn_device_groupings_on_group_id" ON "apn_device_groupings" ("group_id")
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161224')
+Migrating to CreateApnGroupNotifications (20110214161225)
+ SQL (1.4ms) CREATE TABLE "apn_group_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer NOT NULL, "device_language" varchar(255), "sound" varchar(255), "alert" varchar(255), "badge" integer, "custom_properties" text, "sent_at" datetime, "created_at" datetime, "updated_at" datetime) 
+ SQL (0.1ms) PRAGMA index_list("apn_group_notifications")
+ SQL (0.2ms) CREATE INDEX "index_apn_group_notifications_on_group_id" ON "apn_group_notifications" ("group_id")
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161225')
+Migrating to CreatePullNotifications (20110214161226)
+ SQL (0.7ms) CREATE TABLE "apn_pull_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "app_id" integer, "title" varchar(255), "content" varchar(255), "link" varchar(255), "created_at" datetime, "updated_at" datetime) 
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161226')
+Migrating to AlterApnNotifications (20110214161227)
+ SQL (0.7ms) ALTER TABLE "apn_notifications" ADD "custom_properties" text
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161227')
+Migrating to MakeDeviceTokenIndexNonunique (20110214161228)
+ SQL (0.1ms) PRAGMA index_list("apn_devices")
+ SQL (0.1ms) PRAGMA index_info('index_apn_devices_on_token')
+ SQL (0.7ms) DROP INDEX "index_apn_devices_on_token"
+ SQL (0.1ms) PRAGMA index_list("apn_devices")
+ SQL (0.3ms) CREATE INDEX "index_apn_devices_on_token" ON "apn_devices" ("token")
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161228')
+Migrating to AddLaunchNotificationToApnPullNotifications (20110214161229)
+ SQL (1.3ms) ALTER TABLE "apn_pull_notifications" ADD "launch_notification" boolean
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110214161229')
+Migrating to CreateUsers (20110222112755)
+ SQL (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "login" varchar(255), "created_at" datetime, "updated_at" datetime) 
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110222112755')
+ SQL (0.4ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ SQL (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
+ SQL (0.3ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ SQL (0.0ms) PRAGMA index_list("apn_apps")
+ SQL (0.1ms) PRAGMA index_list("apn_device_groupings")
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_group_id')
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_device_id')
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_group_id_and_device_id')
+ SQL (0.1ms) PRAGMA index_list("apn_devices")
+ SQL (0.1ms) PRAGMA index_info('index_apn_devices_on_token')
+ SQL (0.1ms) PRAGMA index_list("apn_group_notifications")
+ SQL (0.1ms) PRAGMA index_info('index_apn_group_notifications_on_group_id')
+ SQL (0.0ms) PRAGMA index_list("apn_groups")
+ SQL (0.1ms) PRAGMA index_list("apn_notifications")
+ SQL (0.1ms) PRAGMA index_info('index_apn_notifications_on_device_id')
+ SQL (0.0ms) PRAGMA index_list("apn_pull_notifications")
+ SQL (0.0ms) PRAGMA index_list("posts")
+ SQL (0.0ms) PRAGMA index_list("users")
+ SQL (0.5ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (0.8ms) INSERT INTO "users" ("updated_at", "email", "login", "name", "created_at") VALUES ('2011-02-22 13:54:26.198477', NULL, NULL, NULL, '2011-02-22 13:54:26.198477')
+ AREL (0.9ms) UPDATE "users" SET "updated_at" = '2011-02-22 13:55:23.770779', "email" = 'jaap@stobbe.nl', "login" = 'qwerty', "name" = 'jaap' WHERE ("users"."id" = 1)
+
+
+Started GET "/" for 127.0.0.1 at Tue Feb 22 14:56:43 +0100 2011
+ Processing by HomeController#index as HTML
+Rendered home/index.html.erb within layouts/application (3.5ms)
+Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at Tue Feb 22 14:58:10 +0100 2011
+ Processing by HomeController#index as HTML
+Rendered home/index.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at Tue Feb 22 14:58:53 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (1.1ms) SELECT "users".* FROM "users" LIMIT 1
+Rendered home/index.html.erb within layouts/application (4.0ms)
+Completed 200 OK in 52ms (Views: 11.8ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/" for 127.0.0.1 at Tue Feb 22 14:59:26 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (0.9ms) SELECT "users".* FROM "users" LIMIT 1
+Completed in 14ms
+
+NoMethodError (undefined method `aap_url' for #<HomeController:0x245ffa4>):
+ app/controllers/home_controller.rb:7:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (9.3ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (20.2ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:04:42 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 4ms
+
+NameError (uninitialized constant HomeController::Heater):
+ app/controllers/home_controller.rb:4:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.5ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (122.6ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:21:49 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (14.8ms) SELECT "users".* FROM "users" LIMIT 1
+Completed in 52ms
+
+NoMethodError (undefined method `aap_url' for #<HomeController:0x228ce34>):
+ app/controllers/home_controller.rb:10:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.4ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.2ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:22:15 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (0.8ms) SELECT "users".* FROM "users" LIMIT 1
+Rendered home/index.html.erb within layouts/application (3.7ms)
+Completed 200 OK in 58ms (Views: 45.2ms | ActiveRecord: 15.6ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:23:23 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (0.9ms) SELECT "users".* FROM "users" LIMIT 1
+Completed in 12ms
+
+ArgumentError (Cannot enqueue items which do not respond to perform):
+ app/controllers/home_controller.rb:14:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.8ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (21.4ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:23:32 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (0.8ms) SELECT "users".* FROM "users" LIMIT 1
+Rendered home/index.html.erb within layouts/application (3.2ms)
+Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 1.7ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:23:38 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (0.8ms) SELECT "users".* FROM "users" LIMIT 1
+Rendered home/index.html.erb within layouts/application (3.2ms)
+Completed 200 OK in 23ms (Views: 10.9ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:24:56 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (0.9ms) SELECT "users".* FROM "users" LIMIT 1
+Completed in 13ms
+
+ActiveRecord::StatementInvalid (Could not find table 'delayed_jobs'):
+ app/controllers/home_controller.rb:10:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.4ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.9ms)
+ SQL (1.1ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ SQL (0.4ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ SQL (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
+Migrating to CreatePosts (20110207113341)
+Migrating to CreateApnDevices (20110214161218)
+Migrating to CreateApnNotifications (20110214161219)
+Migrating to AlterApnDevices (20110214161220)
+Migrating to CreateApnApps (20110214161221)
+Migrating to CreateGroups (20110214161222)
+Migrating to AlterApnGroups (20110214161223)
+Migrating to CreateDeviceGroups (20110214161224)
+Migrating to CreateApnGroupNotifications (20110214161225)
+Migrating to CreatePullNotifications (20110214161226)
+Migrating to AlterApnNotifications (20110214161227)
+Migrating to MakeDeviceTokenIndexNonunique (20110214161228)
+Migrating to AddLaunchNotificationToApnPullNotifications (20110214161229)
+Migrating to CreateUsers (20110222112755)
+Migrating to CreateDelayedJobs (20110223095254)
+ SQL (0.1ms) select sqlite_version(*)
+ SQL (0.4ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ SQL (0.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "handler" text, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "created_at" datetime, "updated_at" datetime)
+ SQL (0.1ms) PRAGMA index_list("delayed_jobs")
+ SQL (37.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
+ SQL (12.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110223095254')
+ SQL (0.6ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ SQL (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
+ SQL (0.3ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ SQL (0.0ms) PRAGMA index_list("apn_apps")
+ SQL (0.1ms) PRAGMA index_list("apn_device_groupings")
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_group_id')
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_device_id')
+ SQL (0.1ms) PRAGMA index_info('index_apn_device_groupings_on_group_id_and_device_id')
+ SQL (0.1ms) PRAGMA index_list("apn_devices")
+ SQL (0.1ms) PRAGMA index_info('index_apn_devices_on_token')
+ SQL (0.1ms) PRAGMA index_list("apn_group_notifications")
+ SQL (0.1ms) PRAGMA index_info('index_apn_group_notifications_on_group_id')
+ SQL (0.2ms) PRAGMA index_list("apn_groups")
+ SQL (0.1ms) PRAGMA index_list("apn_notifications")
+ SQL (0.1ms) PRAGMA index_info('index_apn_notifications_on_device_id')
+ SQL (0.0ms) PRAGMA index_list("apn_pull_notifications")
+ SQL (0.1ms) PRAGMA index_list("delayed_jobs")
+ SQL (0.1ms) PRAGMA index_info('delayed_jobs_priority')
+ SQL (0.1ms) PRAGMA index_list("posts")
+ SQL (0.0ms) PRAGMA index_list("users")
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:25:20 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (1.0ms) SELECT "users".* FROM "users" LIMIT 1
+ SQL (0.4ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (1.1ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "updated_at", "failed_at", "handler", "run_at", "priority", "last_error", "locked_at", "locked_by") VALUES (0, '2011-02-23 10:25:20.458893', '2011-02-23 10:25:20.458893', NULL, '--- !ruby/object:Heater
+current_temperature: 0
+', '2011-02-23 10:27:20.449378', 0, NULL, NULL, NULL)
+Rendered home/index.html.erb within layouts/application (3.4ms)
+Completed 200 OK in 127ms (Views: 12.6ms | ActiveRecord: 2.6ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:38:10 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (1.0ms) SELECT "users".* FROM "users" LIMIT 1
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "updated_at", "failed_at", "handler", "run_at", "priority", "last_error", "locked_at", "locked_by") VALUES (0, '2011-02-23 10:38:10.787001', '2011-02-23 10:38:10.787001', NULL, '--- !ruby/object:Heater
+current_temperature: 0
+', '2011-02-23 10:40:10.785595', 0, NULL, NULL, NULL)
+Rendered home/index.html.erb within layouts/application (3.4ms)
+Completed 200 OK in 30ms (Views: 11.4ms | ActiveRecord: 1.7ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:40:02 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (1.0ms) SELECT "users".* FROM "users" LIMIT 1
+Rendered home/index.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 24ms (Views: 10.7ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 11:40:32 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (0.9ms) SELECT "users".* FROM "users" LIMIT 1
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "updated_at", "failed_at", "handler", "run_at", "priority", "last_error", "locked_at", "locked_by") VALUES (0, '2011-02-23 10:40:32.319558', '2011-02-23 10:40:32.319558', NULL, '--- !ruby/object:Heater
+current_temperature: 0
+', '2011-02-23 10:40:32.319441', 0, NULL, NULL, NULL)
+Rendered home/index.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 32ms (Views: 11.9ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/posts" for 127.0.0.1 at Wed Feb 23 11:49:17 +0100 2011
+ Processing by PostsController#index as HTML
+ Post Load (1.0ms) SELECT "posts".* FROM "posts"
+Rendered posts/index.html.erb within layouts/application (10.0ms)
+Completed 200 OK in 28ms (Views: 19.2ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:09:23 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 1ms
+
+NoMethodError (undefined method `do_this_later' for #<Heater:0x23aa85c @current_temperature=0>):
+ app/controllers/home_controller.rb:6:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.3ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.4ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:11:13 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 1ms
+
+NoMethodError (undefined method `do_this_now' for #<Heater:0x22529a0 @current_temperature=0>):
+ app/controllers/home_controller.rb:6:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.4ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.8ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:11:18 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 1ms
+
+NoMethodError (undefined method `do_this_now' for #<Heater:0x20ffa94 @current_temperature=0>):
+ app/controllers/home_controller.rb:6:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.3ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.3ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:11:47 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 1ms
+
+NoMethodError (undefined method `do_this_now' for #<Heater:0x223c038 @current_temperature=0>):
+ app/controllers/home_controller.rb:6:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.8ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.0ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:12:05 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 1ms
+
+NoMethodError (undefined method `do_this_now' for #<Heater:0x20eece4 @current_temperature=0>):
+ app/controllers/home_controller.rb:6:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.8ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.3ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:12:08 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 1ms
+
+NoMethodError (undefined method `do_this_now' for #<Heater:0x203b52c @current_temperature=0>):
+ app/controllers/home_controller.rb:6:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (8.5ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.0ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:14:54 +0100 2011
+ Processing by HomeController#index as HTML
+ SQL (0.4ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (0.7ms) INSERT INTO "delayed_jobs" ("run_at", "locked_by", "last_error", "locked_at", "priority", "created_at", "handler", "updated_at", "failed_at", "attempts") VALUES ('2011-02-23 11:15:54.559109', NULL, NULL, NULL, 0, '2011-02-23 11:14:54.572727', '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', '2011-02-23 11:14:54.572727', NULL, 0)
+ User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
+Rendered home/index.html.erb within layouts/application (3.2ms)
+Completed 200 OK in 134ms (Views: 11.9ms | ActiveRecord: 1.4ms)
+ AREL (3.8ms) DELETE FROM "delayed_jobs" WHERE 1=1
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:19:21 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (1.0ms) SELECT "users".* FROM "users" LIMIT 1
+ SQL (0.4ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.7ms) INSERT INTO "delayed_jobs" ("last_error", "run_at", "locked_at", "locked_by", "handler", "priority", "created_at", "updated_at", "attempts", "failed_at") VALUES (NULL, '2011-02-23 11:21:21.616064', NULL, NULL, '--- !ruby/object:Heater
+current_temperature: 0
+', 0, '2011-02-23 11:19:21.624783', '2011-02-23 11:19:21.624783', 0, NULL)
+Rendered home/index.html.erb within layouts/application (3.9ms)
+Completed 200 OK in 52ms (Views: 13.0ms | ActiveRecord: 2.1ms)
+ AREL (62.9ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 11:21:26.428891', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 5 and (locked_at is null or locked_at < '2011-02-23 07:21:26.428891') and (run_at <= '2011-02-23 11:21:26.428891'))
+ SQL (26.1ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 5)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:24:28 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (1.2ms) SELECT "users".* FROM "users" LIMIT 1
+ SQL (0.5ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("updated_at", "attempts", "last_error", "priority", "run_at", "locked_at", "failed_at", "locked_by", "created_at", "handler") VALUES ('2011-02-23 11:24:28.497810', 0, NULL, 0, '2011-02-23 11:26:28.488864', NULL, NULL, NULL, '2011-02-23 11:24:28.497810', '--- !ruby/object:Heater
+current_temperature: 0
+')
+Rendered home/index.html.erb within layouts/application (3.7ms)
+Completed 200 OK in 59ms (Views: 12.7ms | ActiveRecord: 2.3ms)
+ AREL (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 11:26:31.825948', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 6 and (locked_at is null or locked_at < '2011-02-23 07:26:31.825948') and (run_at <= '2011-02-23 11:26:31.825948'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 6)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:35:01 +0100 2011
+ Processing by HomeController#index as HTML
+Completed in 1ms
+
+NoMethodError (undefined method `holla_path' for #<Heater:0x20b343c @current_temperature=0>):
+ app/controllers/home_controller.rb:6:in `index'
+
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (89.0ms)
+Rendered /Users/marvin/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (98.2ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:35:16 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (22.3ms) SELECT "users".* FROM "users" LIMIT 1
+ SQL (0.5ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("locked_at", "handler", "locked_by", "attempts", "priority", "failed_at", "run_at", "updated_at", "created_at", "last_error") VALUES (NULL, '--- !ruby/object:Heater
+current_temperature: 0
+', NULL, 0, 0, NULL, '2011-02-23 11:37:16.713419', '2011-02-23 11:35:16.723818', '2011-02-23 11:35:16.723818', NULL)
+Rendered home/index.html.erb within layouts/application (5.3ms)
+Completed 200 OK in 104ms (Views: 14.4ms | ActiveRecord: 23.4ms)
+ AREL (64.3ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 11:37:17.101879', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 7 and (locked_at is null or locked_at < '2011-02-23 07:37:17.101879') and (run_at <= '2011-02-23 11:37:17.101879'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 7)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 12:53:05 +0100 2011
+ Processing by HomeController#index as HTML
+ User Load (1.0ms) SELECT "users".* FROM "users" LIMIT 1
+ SQL (0.4ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("run_at", "locked_by", "created_at", "updated_at", "last_error", "locked_at", "priority", "attempts", "handler", "failed_at") VALUES ('2011-02-23 11:55:05.576923', NULL, '2011-02-23 11:53:05.585721', '2011-02-23 11:53:05.585721', NULL, NULL, 0, 0, '--- !ruby/object:Heater
+current_temperature: 0
+', NULL)
+Rendered home/index.html.erb within layouts/application (3.6ms)
+Completed 200 OK in 66ms (Views: 12.8ms | ActiveRecord: 2.1ms)
+ AREL (56.1ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 11:55:07.750793', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 8 and (locked_at is null or locked_at < '2011-02-23 07:55:07.750793') and (run_at <= '2011-02-23 11:55:07.750793'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 8)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:03:21 +0100 2011
+ Processing by HomeController#index as HTML
+ SQL (0.4ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("failed_at", "locked_at", "last_error", "updated_at", "created_at", "run_at", "handler", "attempts", "priority", "locked_by") VALUES (NULL, NULL, NULL, '2011-02-23 13:03:21.410135', '2011-02-23 13:03:21.410135', '2011-02-23 13:04:21.381255', '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', 0, 0, NULL)
+Rendered home/index.html.erb within layouts/application (3.4ms)
+Completed 200 OK in 80ms (Views: 12.5ms | ActiveRecord: 1.1ms)
+ AREL (3.6ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:04:24.925142', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 9 and (locked_at is null or locked_at < '2011-02-23 09:04:24.925142') and (run_at <= '2011-02-23 13:04:24.925142'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 9)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:07:40 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (56.9ms) INSERT INTO "delayed_jobs" ("failed_at", "locked_at", "last_error", "updated_at", "created_at", "run_at", "handler", "attempts", "priority", "locked_by") VALUES (NULL, NULL, NULL, '2011-02-23 13:07:40.208341', '2011-02-23 13:07:40.208341', '2011-02-23 13:08:40.206550', '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', 0, 0, NULL)
+Rendered home/index.html.erb within layouts/application (3.5ms)
+Completed 200 OK in 98ms (Views: 11.2ms | ActiveRecord: 56.9ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:07:49 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.2ms) INSERT INTO "delayed_jobs" ("failed_at", "locked_at", "last_error", "updated_at", "created_at", "run_at", "handler", "attempts", "priority", "locked_by") VALUES (NULL, NULL, NULL, '2011-02-23 13:07:49.950235', '2011-02-23 13:07:49.950235', '2011-02-23 13:08:49.948156', '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', 0, 0, NULL)
+Rendered home/index.html.erb within layouts/application (4.2ms)
+Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:08:19 +0100 2011
+ Processing by HomeController#index as HTML
+ SQL (0.5ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (0.7ms) INSERT INTO "delayed_jobs" ("last_error", "priority", "created_at", "locked_at", "run_at", "locked_by", "updated_at", "failed_at", "handler", "attempts") VALUES (NULL, 0, '2011-02-23 13:08:19.932917', NULL, '2011-02-23 13:08:19.932799', NULL, '2011-02-23 13:08:19.932917', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', 0)
+Rendered home/index.html.erb within layouts/application (4.7ms)
+Completed 200 OK in 46ms (Views: 14.7ms | ActiveRecord: 1.1ms)
+ AREL (2.7ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:08:20.039502', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 12 and (locked_at is null or locked_at < '2011-02-23 09:08:20.039502') and (run_at <= '2011-02-23 13:08:20.039502'))
+ AREL (1.1ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 12)
+ AREL (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:08:45.065717', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 10 and (locked_at is null or locked_at < '2011-02-23 09:08:45.065717') and (run_at <= '2011-02-23 13:08:45.065717'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 10)
+ AREL (2.8ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:08:50.170814', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 11 and (locked_at is null or locked_at < '2011-02-23 09:08:50.170814') and (run_at <= '2011-02-23 13:08:50.170814'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 11)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:09:41 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (25.9ms) INSERT INTO "delayed_jobs" ("last_error", "priority", "created_at", "locked_at", "run_at", "locked_by", "updated_at", "failed_at", "handler", "attempts") VALUES (NULL, 0, '2011-02-23 13:09:41.121777', NULL, '2011-02-23 13:09:41.121656', NULL, '2011-02-23 13:09:41.121777', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', 0)
+Rendered home/index.html.erb within layouts/application (4.4ms)
+Completed 200 OK in 45ms (Views: 12.4ms | ActiveRecord: 25.9ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:09:42 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.2ms) INSERT INTO "delayed_jobs" ("last_error", "priority", "created_at", "locked_at", "run_at", "locked_by", "updated_at", "failed_at", "handler", "attempts") VALUES (NULL, 0, '2011-02-23 13:09:42.918463', NULL, '2011-02-23 13:09:42.918342', NULL, '2011-02-23 13:09:42.918463', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', 0)
+Rendered home/index.html.erb within layouts/application (4.0ms)
+Completed 200 OK in 21ms (Views: 12.8ms | ActiveRecord: 1.2ms)
+ AREL (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:09:45.212286', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 13 and (locked_at is null or locked_at < '2011-02-23 09:09:45.212286') and (run_at <= '2011-02-23 13:09:45.212286'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 13)
+ AREL (4.6ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:09:50.231716', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 14 and (locked_at is null or locked_at < '2011-02-23 09:09:50.231716') and (run_at <= '2011-02-23 13:09:50.231716'))
+ AREL (0.6ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 14)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:10:27 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (0.6ms) INSERT INTO "users" ("created_at", "login", "updated_at", "name", "email") VALUES ('2011-02-23 13:10:27.919091', NULL, '2011-02-23 13:10:27.919091', 'Delayed', NULL)
+Rendered home/index.html.erb within layouts/application (14.1ms)
+Completed 200 OK in 60ms (Views: 29.0ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:10:42 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (0.5ms) INSERT INTO "users" ("login", "email", "created_at", "updated_at", "name") VALUES (NULL, NULL, '2011-02-23 13:10:42.180581', '2011-02-23 13:10:42.180581', 'Delayed')
+Rendered home/index.html.erb within layouts/application (96.7ms)
+Completed 200 OK in 122ms (Views: 105.4ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:11:30 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.2ms) INSERT INTO "delayed_jobs" ("last_error", "priority", "created_at", "locked_at", "run_at", "locked_by", "updated_at", "failed_at", "handler", "attempts") VALUES (NULL, 0, '2011-02-23 13:11:30.050656', NULL, '2011-02-23 13:11:30.050539', NULL, '2011-02-23 13:11:30.050656', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', 0)
+Rendered home/index.html.erb within layouts/application (3.7ms)
+Completed 200 OK in 21ms (Views: 12.1ms | ActiveRecord: 1.2ms)
+ AREL (2.6ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:11:30.412969', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 15 and (locked_at is null or locked_at < '2011-02-23 09:11:30.412969') and (run_at <= '2011-02-23 13:11:30.412969'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 15)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:13:24 +0100 2011
+ Processing by HomeController#index as HTML
+ SQL (0.4ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("locked_by", "attempts", "updated_at", "locked_at", "handler", "failed_at", "created_at", "last_error", "run_at", "priority") VALUES (NULL, 0, '2011-02-23 13:13:24.623388', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, '2011-02-23 13:13:24.623388', NULL, '2011-02-23 13:13:24.623272', 0)
+Rendered home/index.html.erb within layouts/application (3.6ms)
+Completed 200 OK in 60ms (Views: 14.5ms | ActiveRecord: 1.1ms)
+ AREL (2.8ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:13:25.472758', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 16 and (locked_at is null or locked_at < '2011-02-23 09:13:25.472758') and (run_at <= '2011-02-23 13:13:25.472758'))
+ AREL (0.6ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 16)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:13:47 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.2ms) INSERT INTO "delayed_jobs" ("locked_by", "attempts", "updated_at", "locked_at", "handler", "failed_at", "created_at", "last_error", "run_at", "priority") VALUES (NULL, 0, '2011-02-23 13:13:47.840920', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, '2011-02-23 13:13:47.840920', NULL, '2011-02-23 13:13:47.840792', 0)
+Rendered home/index.html.erb within layouts/application (4.0ms)
+Completed 200 OK in 21ms (Views: 11.4ms | ActiveRecord: 1.2ms)
+ AREL (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:13:49.167073', locked_by = 'host:marvin-mac.local pid:2568' WHERE (id = 17 and (locked_at is null or locked_at < '2011-02-23 09:13:49.167073') and (run_at <= '2011-02-23 13:13:49.167073'))
+ SQL (0.5ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.6ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 17)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:14:17 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.3ms) INSERT INTO "delayed_jobs" ("locked_by", "attempts", "updated_at", "locked_at", "handler", "failed_at", "created_at", "last_error", "run_at", "priority") VALUES (NULL, 0, '2011-02-23 13:14:17.238888', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, '2011-02-23 13:14:17.238888', NULL, '2011-02-23 13:14:17.238763', 0)
+Rendered home/index.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 19ms (Views: 11.5ms | ActiveRecord: 1.3ms)
+ AREL (2.7ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:14:19.207376', locked_by = 'host:marvin-mac.local pid:2568' WHERE (id = 18 and (locked_at is null or locked_at < '2011-02-23 09:14:19.207376') and (run_at <= '2011-02-23 13:14:19.207376'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 18)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:14:57 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.3ms) INSERT INTO "delayed_jobs" ("locked_by", "attempts", "updated_at", "locked_at", "handler", "failed_at", "created_at", "last_error", "run_at", "priority") VALUES (NULL, 0, '2011-02-23 13:14:57.261429', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, '2011-02-23 13:14:57.261429', NULL, '2011-02-23 13:14:57.261302', 0)
+Rendered home/index.html.erb within layouts/application (3.6ms)
+Completed 200 OK in 21ms (Views: 11.9ms | ActiveRecord: 1.3ms)
+ AREL (2.7ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:14:59.239002', locked_by = 'host:marvin-mac.local pid:2568' WHERE (id = 19 and (locked_at is null or locked_at < '2011-02-23 09:14:59.239002') and (run_at <= '2011-02-23 13:14:59.239002'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 19)
+ SQL (0.2ms) SELECT COUNT(*) FROM "users"
+ SQL (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:16:11 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.2ms) INSERT INTO "delayed_jobs" ("locked_by", "attempts", "updated_at", "locked_at", "handler", "failed_at", "created_at", "last_error", "run_at", "priority") VALUES (NULL, 0, '2011-02-23 13:16:11.183328', NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, '2011-02-23 13:16:11.183328', NULL, '2011-02-23 13:16:11.183194', 0)
+Rendered home/index.html.erb within layouts/application (5.0ms)
+Completed 200 OK in 23ms (Views: 14.7ms | ActiveRecord: 1.2ms)
+ SQL (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"
+ AREL (3.0ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:16:14.284594', locked_by = 'host:marvin-mac.local pid:2568' WHERE (id = 20 and (locked_at is null or locked_at < '2011-02-23 09:16:14.284594') and (run_at <= '2011-02-23 13:16:14.284594'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 20)
+ SQL (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"
+ SQL (0.3ms) SELECT COUNT(*) FROM "users"
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:17:35 +0100 2011
+ Processing by HomeController#index as HTML
+ SQL (0.4ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("created_at", "last_error", "failed_at", "handler", "locked_by", "attempts", "priority", "updated_at", "run_at", "locked_at") VALUES ('2011-02-23 13:17:35.453189', NULL, NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, 0, 0, '2011-02-23 13:17:35.453189', '2011-02-23 13:27:35.424678', NULL)
+Rendered home/index.html.erb within layouts/application (3.3ms)
+Completed 200 OK in 80ms (Views: 12.1ms | ActiveRecord: 1.1ms)
+ SQL (0.2ms) SELECT COUNT(*) FROM "users"
+ SQL (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ Delayed::Backend::ActiveRecord::Job Load (0.7ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ SQL (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
+ SQL (0.5ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ SQL (0.5ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.7ms) INSERT INTO "users" ("email", "login", "updated_at", "created_at", "name") VALUES (NULL, NULL, '2011-02-23 13:22:41.859241', '2011-02-23 13:22:41.859241', 'Delayed')
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT "delayed_jobs".* FROM "delayed_jobs"
+ AREL (0.7ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 21)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:23:09 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.2ms) INSERT INTO "delayed_jobs" ("created_at", "last_error", "failed_at", "handler", "locked_by", "attempts", "priority", "updated_at", "run_at", "locked_at") VALUES ('2011-02-23 13:23:09.502322', NULL, NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, 0, 0, '2011-02-23 13:23:09.502322', '2011-02-23 13:33:09.500491', NULL)
+Rendered home/index.html.erb within layouts/application (4.4ms)
+Completed 200 OK in 21ms (Views: 13.6ms | ActiveRecord: 1.2ms)
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ AREL (0.5ms) INSERT INTO "users" ("email", "login", "updated_at", "created_at", "name") VALUES (NULL, NULL, '2011-02-23 13:23:19.929104', '2011-02-23 13:23:19.929104', 'Delayed')
+ SQL (0.5ms) SELECT COUNT(*) FROM "users"
+ Delayed::Backend::ActiveRecord::Job Load (1.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs"
+ AREL (1.2ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 22)
+ User Load (0.4ms) SELECT "users".* FROM "users"
+ AREL (1.0ms) DELETE FROM "users" WHERE ("users"."id" = 4)
+ AREL (0.4ms) DELETE FROM "users" WHERE ("users"."id" = 5)
+ AREL (1.6ms) UPDATE "delayed_jobs" SET locked_by = null, locked_at = null WHERE (locked_by = 'host:marvin-mac.local pid:2568')
+ SQL (0.4ms) SELECT COUNT(*) FROM "users"
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:24:04 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.6ms) INSERT INTO "delayed_jobs" ("created_at", "last_error", "failed_at", "handler", "locked_by", "attempts", "priority", "updated_at", "run_at", "locked_at") VALUES ('2011-02-23 13:24:04.848089', NULL, NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, 0, 0, '2011-02-23 13:24:04.848089', '2011-02-23 13:34:04.846149', NULL)
+Rendered home/index.html.erb within layouts/application (3.8ms)
+Completed 200 OK in 26ms (Views: 15.9ms | ActiveRecord: 1.6ms)
+ AREL (1.9ms) UPDATE "delayed_jobs" SET locked_by = null, locked_at = null WHERE (locked_by = 'host:marvin-mac.local pid:2680')
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT "delayed_jobs".* FROM "delayed_jobs"
+ AREL (0.9ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 23)
+ User Load (0.3ms) SELECT "users".* FROM "users"
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 14:24:52 +0100 2011
+ Processing by HomeController#index as HTML
+ AREL (1.3ms) INSERT INTO "delayed_jobs" ("created_at", "last_error", "failed_at", "handler", "locked_by", "attempts", "priority", "updated_at", "run_at", "locked_at") VALUES ('2011-02-23 13:24:53.000037', NULL, NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, 0, 0, '2011-02-23 13:24:53.000037', '2011-02-23 13:34:52.998148', NULL)
+Rendered home/index.html.erb within layouts/application (3.8ms)
+Completed 200 OK in 23ms (Views: 13.6ms | ActiveRecord: 1.3ms)
+ SQL (0.3ms) SELECT COUNT(*) FROM "users"
+ SQL (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ AREL (0.5ms) INSERT INTO "users" ("email", "login", "updated_at", "created_at", "name") VALUES (NULL, NULL, '2011-02-23 13:25:15.456470', '2011-02-23 13:25:15.456470', 'Delayed')
+ AREL (1.8ms) UPDATE "delayed_jobs" SET locked_by = null, locked_at = null WHERE (locked_by = 'host:marvin-mac.local pid:2684')
+ AREL (1.6ms) UPDATE "delayed_jobs" SET locked_by = null, locked_at = null WHERE (locked_by = 'host:marvin-mac.local pid:2665')
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
+ SQL (0.3ms) SELECT COUNT(*) FROM "users"
+ User Load (0.3ms) SELECT "users".* FROM "users"
+ AREL (0.9ms) DELETE FROM "users" WHERE ("users"."id" = 6)
+ AREL (1.4ms) UPDATE "delayed_jobs" SET locked_by = null, locked_at = null WHERE (locked_by = 'host:marvin-mac.local pid:2665')
+ SQL (0.3ms) SELECT COUNT(*) FROM "delayed_jobs"
+ AREL (33.5ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 13:34:56.422227', locked_by = 'host:marvin-mac.local pid:1630' WHERE (id = 24 and (locked_at is null or locked_at < '2011-02-23 09:34:56.422227') and (run_at <= '2011-02-23 13:34:56.422227'))
+ AREL (0.5ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 24)
+
+
+Started GET "/" for 127.0.0.1 at Wed Feb 23 15:26:07 +0100 2011
+ Processing by HomeController#index as HTML
+ SQL (0.4ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (0.6ms) INSERT INTO "delayed_jobs" ("attempts", "priority", "last_error", "handler", "locked_by", "locked_at", "run_at", "created_at", "failed_at", "updated_at") VALUES (0, 0, NULL, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, NULL, '2011-02-23 14:27:07.051307', '2011-02-23 14:26:07.064873', NULL, '2011-02-23 14:26:07.064873')
+Rendered home/index.html.erb within layouts/application (3.6ms)
+Completed 200 OK in 44ms (Views: 13.3ms | ActiveRecord: 1.0ms)
+ AREL (3.1ms) UPDATE "delayed_jobs" SET locked_at = '2011-02-23 14:27:10.708034', locked_by = 'delayed_job host:marvin-mac.local pid:4109' WHERE (id = 25 and (locked_at is null or locked_at < '2011-02-23 10:27:10.708034') and (run_at <= '2011-02-23 14:27:10.708034'))
+ SQL (0.5ms) SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+ AREL (0.4ms) INSERT INTO "users" ("login", "created_at", "name", "email", "updated_at") VALUES (NULL, '2011-02-23 14:27:10.823266', 'Delayed_MOFO', NULL, '2011-02-23 14:27:10.823266')
+ AREL (0.6ms) DELETE FROM "delayed_jobs" WHERE ("delayed_jobs"."id" = 25)
+ AREL (41.4ms) UPDATE "delayed_jobs" SET locked_by = null, locked_at = null WHERE (locked_by = 'delayed_job host:marvin-mac.local pid:4109')
+
+
+Started GET "/" for 127.0.0.1 at Tue Mar 01 14:01:09 +0100 2011
+ Processing by HomeController#index as HTML
+ SQL (1.1ms)  SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+
+ AREL (21.5ms) INSERT INTO "delayed_jobs" ("failed_at", "run_at", "created_at", "priority", "handler", "locked_by", "attempts", "updated_at", "last_error", "locked_at") VALUES (NULL, '2011-03-01 13:02:10.357421', '2011-03-01 13:01:10.400366', 0, '--- !ruby/struct:Delayed::PerformableMethod
+object: !ruby/object:Heater
+ current_temperature: 0
+method_name: :do_this_later_without_delay
+args: []
+
+', NULL, 0, '2011-03-01 13:01:10.400366', NULL, NULL)
+Rendered home/index.html.erb within layouts/application (4.2ms)
+Completed 200 OK in 178ms (Views: 30.0ms | ActiveRecord: 22.6ms)
View
5 script/delayed_job
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
+require 'delayed/command'
+Delayed::Command.new(ARGV).daemonize
View
11 test/fixtures/users.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+one:
+ name: MyString
+ email: MyString
+ login: MyString
+
+two:
+ name: MyString
+ email: MyString
+ login: MyString
View
49 test/functional/users_controller_test.rb
@@ -0,0 +1,49 @@
+require 'test_helper'
+
+class UsersControllerTest < ActionController::TestCase
+ setup do
+ @user = users(:one)
+ end
+
+ test "should get index" do
+ get :index
+ assert_response :success
+ assert_not_nil assigns(:users)
+ end
+
+ test "should get new" do
+ get :new
+ assert_response :success
+ end
+
+ test "should create user" do
+ assert_difference('User.count') do
+ post :create, :user => @user.attributes
+ end
+
+ assert_redirected_to user_path(assigns(:user))
+ end
+
+ test "should show user" do
+ get :show, :id => @user.to_param
+ assert_response :success
+ end
+
+ test "should get edit" do
+ get :edit, :id => @user.to_param
+ assert_response :success
+ end
+
+ test "should update user" do
+ put :update, :id => @user.to_param, :user => @user.attributes
+ assert_redirected_to user_path(assigns(:user))
+ end
+
+ test "should destroy user" do
+ assert_difference('User.count', -1) do
+ delete :destroy, :id => @user.to_param
+ end
+
+ assert_redirected_to users_path
+ end
+end
View
4 test/unit/helpers/users_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class UsersHelperTest < ActionView::TestCase
+end
View
8 test/unit/user_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class UserTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end

0 comments on commit 256de94

Please sign in to comment.