  [1m[36mSQL (0.3ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  select sqlite_version(*)
  [1m[36mSQL (2.0ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("schema_migrations")
  [1m[36mSQL (1.0ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
Migrating to CreateContacts (20101211184614)
  [1m[36mSQL (0.4ms)[0m  [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20101211184614')
  [1m[36mSQL (0.2ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("contacts")
  [1m[36mSQL (0.4ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateContacts (20101211184614)
Migrating to CreateUsers (20101211185141)
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.4ms)[0m  [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20101211185141')
  [1m[36mSQL (0.2ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("contacts")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("users")[0m
  [1m[36mSQL (0.4ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mAREL (0.4ms)[0m  INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ('Chad', '2010-12-11 18:54:54.120902', '2010-12-11 18:54:54.120902')
  [1m[36mAREL (0.3ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Kelly Fowler', '2010-12-11 18:54:54.163813', '2010-12-11 18:54:54.163813')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mike Clark', '2010-12-11 18:54:54.168600', '2010-12-11 18:54:54.168600')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Dave Thomas', '2010-12-11 18:54:54.170527', '2010-12-11 18:54:54.170527')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mark Gardner', '2010-12-11 18:54:54.172415', '2010-12-11 18:54:54.172415')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Rich Kilmer', '2010-12-11 18:54:54.174295', '2010-12-11 18:54:54.174295')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Anthony Burns', '2010-12-11 18:54:54.176173', '2010-12-11 18:54:54.176173')
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony')[0m
  [1m[35mContact Load (0.5ms)[0m  SELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 11:58:25 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
Completed   in 40ms

ActionView::MissingTemplate (Missing template /search_results with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths "/Users/chad/src/rr2/Book/code/rr2/metaprogramming/app/views"):
  app/controllers/contacts_controller.rb:8:in `search'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.7ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 11:58:37 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (8.2ms)
Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.4ms)


Started GET "/contacts?id=6" for 127.0.0.1 at 2010-12-11 11:58:40 -0700
  Processing by ContactsController#index as HTML
  Parameters: {"id"=>"6"}
  [1m[35mContact Load (0.4ms)[0m  SELECT "contacts".* FROM "contacts"
Rendered contacts/index.html.erb within layouts/application (10.2ms)
Completed 200 OK in 41ms (Views: 13.3ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 11:58:42 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.3ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (5.8ms)
Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 0.3ms)


Started GET "/contacts?id=6" for 127.0.0.1 at 2010-12-11 11:58:43 -0700
  Processing by ContactsController#index as HTML
  Parameters: {"id"=>"6"}
  [1m[35mContact Load (0.4ms)[0m  SELECT "contacts".* FROM "contacts"
Rendered contacts/index.html.erb within layouts/application (11.1ms)
Completed 200 OK in 19ms (Views: 14.0ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 11:58:44 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (34.7ms)
Completed 200 OK in 42ms (Views: 37.3ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 11:59:08 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[35mContact Load (0.4ms)[0m  SELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (6.2ms)
Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.4ms)


Started GET "/contacts/6" for 127.0.0.1 at 2010-12-11 11:59:10 -0700
  Processing by ContactsController#show as HTML
  Parameters: {"id"=>"6"}
  [1m[36mSQL (0.3ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mContact Load (0.1ms)[0m  SELECT "contacts".* FROM "contacts" WHERE ("contacts"."id" = 6) LIMIT 1
Rendered contacts/show.html.erb within layouts/application (5.4ms)
Completed 200 OK in 15ms (Views: 8.5ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 11:59:12 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.3ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (6.0ms)
Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 0.3ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:09:36 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
Completed   in 0ms

NoMethodError (undefined method `humanize' for :contacts:Symbol):
  app/controllers/application_controller.rb:6:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.1ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (5.8ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:09:59 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
Completed   in 1ms

NameError (undefined local variable or method `model_class' for #<ContactsController:0x00000103330050>):
  app/controllers/application_controller.rb:11:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.0ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (5.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:10:31 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE ('name' like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (2.6ms)
Completed 200 OK in 34ms (Views: 5.4ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:10:55 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[35mContact Load (0.4ms)[0m  SELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (7.4ms)
Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=kelly" for 127.0.0.1 at 2010-12-11 12:11:01 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"kelly"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%kelly%')[0m
Rendered shared/search_results.html.erb within layouts/application (6.9ms)
Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:11:02 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[35mContact Load (0.3ms)[0m  SELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (6.1ms)
Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.3ms)
  [1m[36mSQL (0.4ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
Migrating to CreateContacts (20101211184614)
Migrating to CreateUsers (20101211185141)
Migrating to CreateStatusUpdates (20101211191203)
  [1m[35mSQL (0.0ms)[0m  select sqlite_version(*)
  [1m[36mSQL (0.4ms)[0m  [1mCREATE TABLE "status_updates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m  INSERT INTO "schema_migrations" ("version") VALUES ('20101211191203')
  [1m[36mSQL (0.3ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m  SELECT "schema_migrations"."version" FROM "schema_migrations"
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("contacts")
  [1m[36mSQL (0.0ms)[0m  [1mPRAGMA index_list("status_updates")[0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("users")


Started GET "/status_updates/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:12:25 -0700
  Processing by StatusUpdatesController#show as HTML
  Parameters: {"term"=>"anthony", "id"=>"search"}
  [1m[36mSQL (0.5ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mStatusUpdate Load (0.1ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE ("status_updates"."id" = 0) LIMIT 1
Completed   in 29ms

ActiveRecord::RecordNotFound (Couldn't find StatusUpdate with ID=search):
  app/controllers/status_updates_controller.rb:17:in `show'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.3ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (5.7ms)


Started GET "/status_updates/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:12:51 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mStatusUpdate Load (0.2ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (name like '%anthony%')[0m
SQLite3::SQLException: no such column: name: SELECT "status_updates".* FROM "status_updates" WHERE (name like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (10.2ms)
Completed   in 14ms

ActionView::Template::Error (SQLite3::SQLException: no such column: name: SELECT "status_updates".* FROM "status_updates" WHERE (name like '%anthony%')):
    2:   <%= @title %>
    3: </h2>
    4: <ul>
    5:   <% @results.each do |result| %>
    6:   <li>
    7:     <%= link_to result.send(@display_as), 
    8:                 send(@display_path, result)
  app/views/shared/search_results.html.erb:5:in `_app_views_shared_search_results_html_erb___797447526448956131_2178074920_1956160140937352165'
  app/controllers/application_controller.rb:11:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
  [1m[35mStatusUpdate Load (0.3ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE (name like '%anthony%')
SQLite3::SQLException: no such column: name: SELECT "status_updates".* FROM "status_updates" WHERE (name like '%anthony%')
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (4.2ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.8ms)


Started GET "/status_updates/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:13:23 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mStatusUpdate Load (0.3ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (body like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (2.5ms)
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)
  [1m[36mSQL (0.4ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mAREL (0.4ms)[0m  INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ('Chad', '2010-12-11 19:14:22.110183', '2010-12-11 19:14:22.110183')
  [1m[36mAREL (0.3ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Kelly Fowler', '2010-12-11 19:14:22.173962', '2010-12-11 19:14:22.173962')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mike Clark', '2010-12-11 19:14:22.178298', '2010-12-11 19:14:22.178298')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Dave Thomas', '2010-12-11 19:14:22.180185', '2010-12-11 19:14:22.180185')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mark Gardner', '2010-12-11 19:14:22.182107', '2010-12-11 19:14:22.182107')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Rich Kilmer', '2010-12-11 19:14:22.183967', '2010-12-11 19:14:22.183967')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Anthony Burns', '2010-12-11 19:14:22.185864', '2010-12-11 19:14:22.185864')
  [1m[36mAREL (0.3ms)[0m  [1mINSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES (NULL, 'Blah blah blah foo bar', '2010-12-11 19:14:22.194434', '2010-12-11 19:14:22.194434')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES (NULL, 'I ate some pizza', '2010-12-11 19:14:22.198874', '2010-12-11 19:14:22.198874')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES (NULL, 'Travel sucks', '2010-12-11 19:14:22.200952', '2010-12-11 19:14:22.200952')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES (NULL, 'The threat level is orange', '2010-12-11 19:14:22.203010', '2010-12-11 19:14:22.203010')


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:14:32 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[36mStatusUpdate Load (0.6ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')[0m
Rendered shared/search_results.html.erb within layouts/application (15.4ms)
Completed   in 45ms

ActionView::Template::Error (undefined method `name' for #<StatusUpdate:0x00000104134a70>):
    4: <ul>
    5:   <% @results.each do |result| %>
    6:   <li>
    7:     <%= link_to result.send(@display_as), 
    8:                 send(@display_path, result)
    9:     %>
    10:   </li>    
  app/views/shared/search_results.html.erb:7:in `block in _app_views_shared_search_results_html_erb___52476053373128566_2181703460_2340103604855764422'
  app/views/shared/search_results.html.erb:5:in `_app_views_shared_search_results_html_erb___52476053373128566_2181703460_2340103604855764422'
  app/controllers/application_controller.rb:11:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.3ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.9ms)


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:14:50 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[35mStatusUpdate Load (0.3ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')
Rendered shared/search_results.html.erb within layouts/application (6.3ms)
Completed   in 10ms

ActionView::Template::Error (undefined method `name' for #<StatusUpdate:0x000001013b4b40>):
    4: <ul>
    5:   <% @results.each do |result| %>
    6:   <li>
    7:     <%= link_to result.send(@display_as), 
    8:                 send(@display_path, result)
    9:     %>
    10:   </li>    
  app/views/shared/search_results.html.erb:7:in `block in _app_views_shared_search_results_html_erb___52476053373128566_2157879100_2340103604855764422'
  app/views/shared/search_results.html.erb:5:in `_app_views_shared_search_results_html_erb___52476053373128566_2157879100_2340103604855764422'
  app/controllers/application_controller.rb:11:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.2ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.0ms)


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:14:52 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[36mStatusUpdate Load (0.6ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')[0m
Rendered shared/search_results.html.erb within layouts/application (6.2ms)
Completed   in 10ms

ActionView::Template::Error (undefined method `name' for #<StatusUpdate:0x00000104135ba0>):
    4: <ul>
    5:   <% @results.each do |result| %>
    6:   <li>
    7:     <%= link_to result.send(@display_as), 
    8:                 send(@display_path, result)
    9:     %>
    10:   </li>    
  app/views/shared/search_results.html.erb:7:in `block in _app_views_shared_search_results_html_erb___52476053373128566_2181705020_2340103604855764422'
  app/views/shared/search_results.html.erb:5:in `_app_views_shared_search_results_html_erb___52476053373128566_2181705020_2340103604855764422'
  app/controllers/application_controller.rb:11:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.3ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.9ms)


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:14:53 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[35mStatusUpdate Load (0.5ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')
Rendered shared/search_results.html.erb within layouts/application (6.5ms)
Completed   in 10ms

ActionView::Template::Error (undefined method `name' for #<StatusUpdate:0x000001014256d8>):
    4: <ul>
    5:   <% @results.each do |result| %>
    6:   <li>
    7:     <%= link_to result.send(@display_as), 
    8:                 send(@display_path, result)
    9:     %>
    10:   </li>    
  app/views/shared/search_results.html.erb:7:in `block in _app_views_shared_search_results_html_erb___52476053373128566_2158075500_2340103604855764422'
  app/views/shared/search_results.html.erb:5:in `_app_views_shared_search_results_html_erb___52476053373128566_2158075500_2340103604855764422'
  app/controllers/application_controller.rb:11:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.6ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.4ms)


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:14:53 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[36mStatusUpdate Load (0.5ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')[0m
Rendered shared/search_results.html.erb within layouts/application (6.5ms)
Completed   in 10ms

ActionView::Template::Error (undefined method `name' for #<StatusUpdate:0x000001041f8380>):
    4: <ul>
    5:   <% @results.each do |result| %>
    6:   <li>
    7:     <%= link_to result.send(@display_as), 
    8:                 send(@display_path, result)
    9:     %>
    10:   </li>    
  app/views/shared/search_results.html.erb:7:in `block in _app_views_shared_search_results_html_erb___52476053373128566_2182104500_2340103604855764422'
  app/views/shared/search_results.html.erb:5:in `_app_views_shared_search_results_html_erb___52476053373128566_2182104500_2340103604855764422'
  app/controllers/application_controller.rb:11:in `block in search_action_for'

Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.5ms)
Rendered /Users/chad/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.0ms)


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:14:58 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[35mStatusUpdate Load (0.5ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')
Rendered shared/search_results.html.erb within layouts/application (7.0ms)
Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 1.0ms)
  [1m[36mSQL (0.4ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mAREL (0.4ms)[0m  INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ('Chad', '2010-12-11 19:15:36.410924', '2010-12-11 19:15:36.410924')
  [1m[36mAREL (0.4ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Kelly Fowler', '2010-12-11 19:15:36.474324', '2010-12-11 19:15:36.474324')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mike Clark', '2010-12-11 19:15:36.478254', '2010-12-11 19:15:36.478254')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Dave Thomas', '2010-12-11 19:15:36.480127', '2010-12-11 19:15:36.480127')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mark Gardner', '2010-12-11 19:15:36.482025', '2010-12-11 19:15:36.482025')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Rich Kilmer', '2010-12-11 19:15:36.483878', '2010-12-11 19:15:36.483878')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Anthony Burns', '2010-12-11 19:15:36.485757', '2010-12-11 19:15:36.485757')
  [1m[36mAREL (0.3ms)[0m  [1mINSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'Blah blah blah foo bar', '2010-12-11 19:15:36.494614', '2010-12-11 19:15:36.494614')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'I ate some pizza', '2010-12-11 19:15:36.499920', '2010-12-11 19:15:36.499920')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'Travel sucks', '2010-12-11 19:15:36.502016', '2010-12-11 19:15:36.502016')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'The threat level is orange', '2010-12-11 19:15:36.504102', '2010-12-11 19:15:36.504102')


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:15:36 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[36mStatusUpdate Load (0.5ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')[0m
Rendered shared/search_results.html.erb within layouts/application (32.1ms)
Completed 200 OK in 36ms (Views: 34.6ms | ActiveRecord: 0.5ms)
  [1m[36mSQL (0.3ms)[0m  [1mselect sqlite_version(*)[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.5ms)[0m  [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.0ms)[0m  [1mCREATE TABLE "status_updates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (1.3ms)[0m  [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.9ms)[0m  [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
  [1m[35mSQL (0.0ms)[0m  PRAGMA index_list("schema_migrations")
  [1m[36mSQL (1.1ms)[0m  [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT version FROM "schema_migrations"[0m
  [1m[35mSQL (0.9ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20101211191203')
  [1m[36mSQL (0.8ms)[0m  [1mINSERT INTO "schema_migrations" (version) VALUES ('20101211184614')[0m
  [1m[35mSQL (0.9ms)[0m  INSERT INTO "schema_migrations" (version) VALUES ('20101211185141')
  [1m[36mSQL (0.1ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mSQL (0.1ms)[0m   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  [1m[36mSQL (0.1ms)[0m  [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
  [1m[35mAREL (0.3ms)[0m  INSERT INTO "users" ("name", "created_at", "updated_at") VALUES ('Chad', '2010-12-11 19:15:48.657867', '2010-12-11 19:15:48.657867')
  [1m[36mAREL (0.3ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Kelly Fowler', '2010-12-11 19:15:48.722654', '2010-12-11 19:15:48.722654')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mike Clark', '2010-12-11 19:15:48.726997', '2010-12-11 19:15:48.726997')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Dave Thomas', '2010-12-11 19:15:48.728733', '2010-12-11 19:15:48.728733')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Mark Gardner', '2010-12-11 19:15:48.730493', '2010-12-11 19:15:48.730493')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Rich Kilmer', '2010-12-11 19:15:48.732272', '2010-12-11 19:15:48.732272')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "contacts" ("name", "created_at", "updated_at") VALUES ('Anthony Burns', '2010-12-11 19:15:48.734063', '2010-12-11 19:15:48.734063')
  [1m[36mAREL (0.3ms)[0m  [1mINSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'Blah blah blah foo bar', '2010-12-11 19:15:48.743614', '2010-12-11 19:15:48.743614')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'I ate some pizza', '2010-12-11 19:15:48.748637', '2010-12-11 19:15:48.748637')
  [1m[36mAREL (0.2ms)[0m  [1mINSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'Travel sucks', '2010-12-11 19:15:48.750505', '2010-12-11 19:15:48.750505')[0m
  [1m[35mAREL (0.2ms)[0m  INSERT INTO "status_updates" ("title", "body", "created_at", "updated_at") VALUES ('this is a status update', 'The threat level is orange', '2010-12-11 19:15:48.752371', '2010-12-11 19:15:48.752371')


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:15:52 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[36mStatusUpdate Load (0.5ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')[0m
Rendered shared/search_results.html.erb within layouts/application (8.8ms)
Completed 200 OK in 38ms (Views: 11.4ms | ActiveRecord: 0.5ms)


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:15:53 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[35mStatusUpdate Load (0.2ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')
Rendered shared/search_results.html.erb within layouts/application (9.4ms)
Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.2ms)


Started GET "/status_updates/1" for 127.0.0.1 at 2010-12-11 12:15:55 -0700
  Processing by StatusUpdatesController#show as HTML
  Parameters: {"id"=>"1"}
  [1m[36mSQL (0.3ms)[0m  [1m SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
  [1m[35mStatusUpdate Load (0.1ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE ("status_updates"."id" = 1) LIMIT 1
Rendered status_updates/show.html.erb within layouts/application (6.1ms)
Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.5ms)


Started GET "/status_updates/search?term=foo" for 127.0.0.1 at 2010-12-11 12:15:57 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"foo"}
  [1m[36mStatusUpdate Load (0.3ms)[0m  [1mSELECT "status_updates".* FROM "status_updates" WHERE (body like '%foo%')[0m
Rendered shared/search_results.html.erb within layouts/application (6.8ms)
Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.3ms)


Started GET "/status_updates/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:19 -0700
  Processing by StatusUpdatesController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[35mStatusUpdate Load (0.5ms)[0m  SELECT "status_updates".* FROM "status_updates" WHERE (body like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (2.5ms)
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.5ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:19 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (33.8ms)
Completed 200 OK in 41ms (Views: 36.5ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:21 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[35mContact Load (0.4ms)[0m  SELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (6.2ms)
Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:21 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (6.3ms)
Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:22 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[35mContact Load (0.3ms)[0m  SELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (6.0ms)
Completed 200 OK in 13ms (Views: 8.6ms | ActiveRecord: 0.3ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:23 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (6.2ms)
Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:30 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[36mContact Load (0.4ms)[0m  [1mSELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')[0m
Rendered shared/search_results.html.erb within layouts/application (8.0ms)
Completed 200 OK in 40ms (Views: 10.5ms | ActiveRecord: 0.4ms)


Started GET "/contacts/search?term=anthony" for 127.0.0.1 at 2010-12-11 12:18:31 -0700
  Processing by ContactsController#search as HTML
  Parameters: {"term"=>"anthony"}
  [1m[35mContact Load (0.2ms)[0m  SELECT "contacts".* FROM "contacts" WHERE (name like '%anthony%')
Rendered shared/search_results.html.erb within layouts/application (6.2ms)
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.2ms)
