  [1m[36m (0.0ms)[0m  [1mselect sqlite_version(*)[0m
  [1m[35m (2.5ms)[0m  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
  [1m[36m (0.1ms)[0m  [1mPRAGMA index_list("schema_migrations")[0m
  [1m[35m (0.9ms)[0m  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
Migrating to CreateRecipes (20110820115057)
  [1m[35m (0.5ms)[0m  CREATE TABLE "recipes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
  [1m[36m (0.1ms)[0m  [1mINSERT INTO "schema_migrations" ("version") VALUES ('20110820115057')[0m
  [1m[35m (0.3ms)[0m  select sqlite_version(*)
  [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
  [1m[35m (0.0ms)[0m  PRAGMA index_list("recipes")


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 07:51:16 -0400
  Processing by RecipesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 07:51:20 -0400
  Processing by RecipesController#index as HTML
  [1m[36mRecipe Load (0.1ms)[0m  [1mSELECT "recipes".* FROM "recipes" [0m
Rendered recipes/index.html.erb within layouts/application (8.3ms)
Completed 200 OK in 44ms (Views: 42.5ms | ActiveRecord: 0.3ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 07:51:20 -0400
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/stylesheets/application.css  (1ms)  (pid 21507)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/stylesheets/recipes.css.scss  (405ms)  (pid 21507)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/stylesheets/scaffolds.css.scss  (33ms)  (pid 21507)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/stylesheets/application.css  (0ms)  (pid 21507)
Served asset /application.css - 200 OK (459ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 07:51:21 -0400
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/javascripts/application.js  (5ms)  (pid 21507)
Compiled ~/.rvm/gems/ruby-1.9.2-p0@deals/gems/jquery-rails-1.0.13/vendor/assets/javascripts/jquery.js  (1ms)  (pid 21507)
Compiled ~/.rvm/gems/ruby-1.9.2-p0@deals/gems/jquery-rails-1.0.13/vendor/assets/javascripts/jquery_ujs.js  (0ms)  (pid 21507)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/javascripts/recipes.js.coffee  (160ms)  (pid 21507)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/javascripts/application.js  (0ms)  (pid 21507)
Served asset /application.js - 200 OK (201ms)


Started GET "/assets/rails.png" for 127.0.0.1 at 2011-08-20 07:51:47 -0400
Served asset /rails.png - 200 OK (3ms)


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 07:51:50 -0400
  Processing by RecipesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 07:51:52 -0400
  Processing by RecipesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/" for 127.0.0.1 at 2011-08-20 08:11:22 -0400
  Processing by PagesController#index as HTML
Rendered pages/index.html.erb within layouts/application (7.1ms)
Completed 200 OK in 62ms (Views: 61.9ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:11:23 -0400
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/stylesheets/application.css  (2ms)  (pid 21597)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/stylesheets/pages.css.scss  (415ms)  (pid 21597)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/stylesheets/application.css  (0ms)  (pid 21597)
Served asset /application.css - 304 Not Modified (436ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:11:23 -0400
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/javascripts/application.js  (3ms)  (pid 21597)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/javascripts/pages.js.coffee  (152ms)  (pid 21597)
Compiled ~/src/rr2/Book/code/rr2/http_basic/app/assets/javascripts/application.js  (0ms)  (pid 21597)
Served asset /application.js - 200 OK (185ms)


Started GET "/" for 127.0.0.1 at 2011-08-20 08:11:31 -0400
  Processing by PagesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/" for 127.0.0.1 at 2011-08-20 08:11:33 -0400
  Processing by PagesController#index as HTML
Completed 401 Unauthorized in 0ms
  [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
Migrating to CreateRecipes (20110820115057)
Migrating to CreateUsers (20110820121406)
  [1m[35m (0.0ms)[0m  select sqlite_version(*)
  [1m[36m (0.4ms)[0m  [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "password" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35m (1.6ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20110820121406')
  [1m[36m (0.2ms)[0m  [1mselect sqlite_version(*)[0m
  [1m[35m (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations" 
  [1m[36m (0.0ms)[0m  [1mPRAGMA index_list("recipes")[0m
  [1m[35m (0.0ms)[0m  PRAGMA index_list("users")
  [1m[36m (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
  [1m[35mSQL (10.5ms)[0m  INSERT INTO "users" ("created_at", "name", "password", "updated_at") VALUES (?, ?, ?, ?)  [["created_at", Sat, 20 Aug 2011 12:16:01 UTC +00:00], ["name", "chad"], ["password", "secret"], ["updated_at", Sat, 20 Aug 2011 12:16:01 UTC +00:00]]


Started GET "/" for 127.0.0.1 at 2011-08-20 08:16:10 -0400
  Processing by PagesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/" for 127.0.0.1 at 2011-08-20 08:16:17 -0400
  Processing by PagesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 08:16:33 -0400

SyntaxError (/Users/chad/src/rr2/Book/code/rr2/http_basic/app/controllers/recipes_controller.rb:2: syntax error, unexpected tASSOC
  before_filter :authenticate, only: => [:edit, :update]
                                       ^):
  

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0@deals/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0@deals/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0@deals/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.1ms)


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 08:16:47 -0400
  Processing by RecipesController#index as HTML
  [1m[36mRecipe Load (0.1ms)[0m  [1mSELECT "recipes".* FROM "recipes" [0m
Rendered recipes/index.html.erb within layouts/application (1.0ms)
Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.1ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:16:47 -0400
Served asset /application.js - 200 OK (10ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:16:47 -0400
Served asset /application.css - 200 OK (6ms)


Started GET "/recipes/new" for 127.0.0.1 at 2011-08-20 08:16:49 -0400
  Processing by RecipesController#new as HTML
Rendered recipes/_form.html.erb (6.6ms)
Rendered recipes/new.html.erb within layouts/application (14.3ms)
Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.2ms)


Started POST "/recipes" for 127.0.0.1 at 2011-08-20 08:16:53 -0400
  Processing by RecipesController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"DYcWvyBjTcqFGEzxBu6s3QtfyEi4jBWLueiHEReSzM0=", "recipe"=>{"name"=>"Frog Soup"}, "commit"=>"Create Recipe"}
  [1m[35mSQL (11.5ms)[0m  INSERT INTO "recipes" ("created_at", "name", "updated_at") VALUES (?, ?, ?)  [["created_at", Sat, 20 Aug 2011 12:16:53 UTC +00:00], ["name", "Frog Soup"], ["updated_at", Sat, 20 Aug 2011 12:16:53 UTC +00:00]]
Redirected to http://localhost:3000/recipes/1
Completed 302 Found in 47ms


Started GET "/recipes/1" for 127.0.0.1 at 2011-08-20 08:16:53 -0400
  Processing by RecipesController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[36mRecipe Load (0.2ms)[0m  [1mSELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT 1[0m  [["id", "1"]]
Rendered recipes/show.html.erb within layouts/application (5.2ms)
Completed 200 OK in 37ms (Views: 33.6ms | ActiveRecord: 0.5ms)


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 08:16:55 -0400
  Processing by RecipesController#index as HTML
  [1m[35mRecipe Load (0.1ms)[0m  SELECT "recipes".* FROM "recipes" 
Rendered recipes/index.html.erb within layouts/application (5.0ms)
Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms)


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 08:17:06 -0400
  Processing by RecipesController#index as HTML
  [1m[36mRecipe Load (0.1ms)[0m  [1mSELECT "recipes".* FROM "recipes" [0m
Rendered recipes/index.html.erb within layouts/application (5.0ms)
Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.3ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:17:06 -0400
Served asset /application.css - 304 Not Modified (0ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:17:06 -0400
Served asset /application.js - 304 Not Modified (0ms)


Started GET "/recipes/" for 127.0.0.1 at 2011-08-20 08:17:20 -0400
  Processing by RecipesController#index as HTML
  [1m[35mRecipe Load (0.1ms)[0m  SELECT "recipes".* FROM "recipes" 
Rendered recipes/index.html.erb within layouts/application (5.0ms)
Completed 200 OK in 17ms (Views: 15.8ms | ActiveRecord: 0.4ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:17:20 -0400
Served asset /application.js - 304 Not Modified (0ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:17:20 -0400
Served asset /application.css - 304 Not Modified (0ms)


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:17:22 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
Completed 401 Unauthorized in 0ms


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:17:29 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
  [1m[36mUser Load (0.2ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'aep' AND "users"."password" = 'vivi' LIMIT 1[0m
Completed 401 Unauthorized in 52ms


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:17:39 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
  [1m[35mUser Load (0.1ms)[0m  SELECT "users".* FROM "users" WHERE "users"."name" = 'chad' AND "users"."password" = 'secret' LIMIT 1
  [1m[36mRecipe Load (0.2ms)[0m  [1mSELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT 1[0m  [["id", "1"]]
Rendered recipes/_form.html.erb (5.0ms)
Rendered recipes/edit.html.erb within layouts/application (6.8ms)
Completed 200 OK in 27ms (Views: 17.2ms | ActiveRecord: 1.1ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:17:39 -0400
Served asset /application.js - 304 Not Modified (0ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:17:39 -0400
Served asset /application.css - 304 Not Modified (0ms)


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:18:06 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
  [1m[36mUser Load (0.2ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'chad' AND "users"."password" = 'secret' LIMIT 1[0m
  [1m[35mRecipe Load (0.1ms)[0m  SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT 1  [["id", "1"]]
Rendered recipes/_form.html.erb (7.2ms)
Rendered recipes/edit.html.erb within layouts/application (21.8ms)
Completed 200 OK in 76ms (Views: 54.7ms | ActiveRecord: 0.8ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:18:06 -0400
Served asset /application.css - 304 Not Modified (8ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:18:06 -0400
Served asset /application.js - 304 Not Modified (8ms)


Started GET "/recipes" for 127.0.0.1 at 2011-08-20 08:18:15 -0400
  Processing by RecipesController#index as HTML
  [1m[36mRecipe Load (0.1ms)[0m  [1mSELECT "recipes".* FROM "recipes" [0m
Rendered recipes/index.html.erb within layouts/application (5.9ms)
Completed 200 OK in 18ms (Views: 16.1ms | ActiveRecord: 0.4ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:18:15 -0400
Served asset /application.css - 304 Not Modified (0ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:18:15 -0400
Served asset /application.js - 304 Not Modified (0ms)


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:18:16 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
  [1m[35mUser Load (0.1ms)[0m  SELECT "users".* FROM "users" WHERE "users"."name" = 'chad' AND "users"."password" = 'secret' LIMIT 1
  [1m[36mRecipe Load (0.1ms)[0m  [1mSELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT 1[0m  [["id", "1"]]
Rendered recipes/_form.html.erb (5.2ms)
Rendered recipes/edit.html.erb within layouts/application (6.4ms)
Completed 200 OK in 49ms (Views: 43.2ms | ActiveRecord: 0.6ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:18:17 -0400
Served asset /application.js - 304 Not Modified (0ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:18:17 -0400
Served asset /application.css - 304 Not Modified (0ms)


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:18:48 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
Completed 500 Internal Server Error in 0ms

NoMethodError (undefined method `gsub' for {:realm=>"Recipe Admin"}:Hash):
  app/controllers/recipes_controller.rb:4:in `authenticate'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0@deals/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0@deals/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0@deals/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (4.3ms)


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:19:51 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
Completed 401 Unauthorized in 0ms


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:20:02 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
Completed 401 Unauthorized in 0ms


Started GET "/" for 127.0.0.1 at 2011-08-20 08:20:04 -0400
  Processing by PagesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/" for 127.0.0.1 at 2011-08-20 08:20:06 -0400
  Processing by PagesController#index as HTML
Completed 401 Unauthorized in 0ms


Started GET "/recipes/" for 127.0.0.1 at 2011-08-20 08:20:11 -0400
  Processing by RecipesController#index as HTML
  [1m[35mRecipe Load (0.1ms)[0m  SELECT "recipes".* FROM "recipes" 
Rendered recipes/index.html.erb within layouts/application (4.7ms)
Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.4ms)


Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-20 08:20:11 -0400
Served asset /application.css - 200 OK (0ms)


Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-20 08:20:11 -0400
Served asset /application.js - 200 OK (1ms)


Started GET "/recipes/1/edit" for 127.0.0.1 at 2011-08-20 08:20:14 -0400
  Processing by RecipesController#edit as HTML
  Parameters: {"id"=>"1"}
Completed 401 Unauthorized in 0ms
