tb_inquiries 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.markdown +76 -0
  4. data/Rakefile +28 -0
  5. data/app/assets/images/spud/admin/contacts_thumb.png +0 -0
  6. data/app/assets/javascripts/spud/admin/inquiries.js +8 -0
  7. data/app/assets/javascripts/spud/inquiries/sitemaps.js +2 -0
  8. data/app/assets/stylesheets/spud/admin/inquiries.css +4 -0
  9. data/app/assets/stylesheets/spud/inquiries/sitemaps.css +4 -0
  10. data/app/controllers/contacts_controller.rb +82 -0
  11. data/app/controllers/spud/admin/inquiries_controller.rb +38 -0
  12. data/app/controllers/spud/admin/inquiry_forms_controller.rb +58 -0
  13. data/app/controllers/spud/inquiries/sitemaps_controller.rb +7 -0
  14. data/app/helpers/contacts_helper.rb +3 -0
  15. data/app/mailers/spud/inquiry_mailer.rb +10 -0
  16. data/app/models/spud_inquiry.rb +46 -0
  17. data/app/models/spud_inquiry_field.rb +13 -0
  18. data/app/models/spud_inquiry_form.rb +27 -0
  19. data/app/models/spud_inquiry_form_field.rb +21 -0
  20. data/app/views/contacts/_show.html.erb +45 -0
  21. data/app/views/contacts/show.html.erb +4 -0
  22. data/app/views/contacts/show.js.erb +1 -0
  23. data/app/views/contacts/thankyou.html.erb +2 -0
  24. data/app/views/contacts/thankyou.js.erb +1 -0
  25. data/app/views/layouts/spud/inquiries/detail.html.erb +6 -0
  26. data/app/views/spud/admin/inquiries/index.html.erb +30 -0
  27. data/app/views/spud/admin/inquiries/show.html.erb +8 -0
  28. data/app/views/spud/admin/inquiry_forms/_form.html.erb +52 -0
  29. data/app/views/spud/admin/inquiry_forms/_spud_inquiry_form_field_fields.html.erb +56 -0
  30. data/app/views/spud/admin/inquiry_forms/edit.html.erb +6 -0
  31. data/app/views/spud/admin/inquiry_forms/index.html.erb +22 -0
  32. data/app/views/spud/admin/inquiry_forms/new.html.erb +9 -0
  33. data/app/views/spud/inquiries/sitemaps/show.xml.builder +16 -0
  34. data/app/views/spud/inquiry_mailer/inquiry_notification.html.erb +15 -0
  35. data/app/views/spud/inquiry_mailer/inquiry_notification.text.erb +7 -0
  36. data/config/routes.rb +16 -0
  37. data/db/migrate/20120117133405_create_spud_inquiries.rb +8 -0
  38. data/db/migrate/20120117133412_create_spud_inquiry_fields.rb +13 -0
  39. data/db/migrate/20120121194439_create_spud_inquiry_forms.rb +9 -0
  40. data/db/migrate/20120121194447_create_spud_inquiry_form_fields.rb +12 -0
  41. data/db/migrate/20120122173829_add_field_order_to_spud_inquiry_form_fields.rb +7 -0
  42. data/db/migrate/20120126132407_add_spud_inquiry_form_id_to_spud_inquiries.rb +11 -0
  43. data/db/migrate/20120126132522_add_recipients_to_spud_inquiry_forms.rb +6 -0
  44. data/db/migrate/20120127023335_add_url_name_to_spud_inquiry_forms.rb +6 -0
  45. data/db/migrate/20120413124900_change_inquiry_form_fields_column.rb +9 -0
  46. data/db/migrate/20121228145215_add_thank_you_content_to_spud_inquiry_form.rb +5 -0
  47. data/db/migrate/20130627121030_add_placeholder_to_spud_inquiry_form_fields.rb +5 -0
  48. data/db/migrate/20131111143656_add_submit_title_to_spud_inquiry_form.rb +5 -0
  49. data/db/migrate/20131111143945_add_field_name_to_spud_inquiry_form_fields.rb +5 -0
  50. data/db/migrate/20131111144731_add_class_name_to_spud_inquiry_form_fields.rb +5 -0
  51. data/db/migrate/20131204163221_add_field_name_to_spud_inquiry_fields.rb +5 -0
  52. data/lib/spud_inquiries/configuration.rb +16 -0
  53. data/lib/spud_inquiries/engine.rb +28 -0
  54. data/lib/spud_inquiries/liquid_form.rb +47 -0
  55. data/lib/spud_inquiries/version.rb +5 -0
  56. data/lib/tasks/spud_inquiries_tasks.rake +4 -0
  57. data/lib/tb_inquiries.rb +7 -0
  58. data/spec/controllers/contacts_controller_spec.rb +69 -0
  59. data/spec/controllers/spud/admin/inquiries_controller_spec.rb +55 -0
  60. data/spec/controllers/spud/admin/inquiry_forms_controller_spec.rb +98 -0
  61. data/spec/controllers/spud/inquiries/sitemaps_controller_spec.rb +24 -0
  62. data/spec/dummy/README.rdoc +261 -0
  63. data/spec/dummy/Rakefile +7 -0
  64. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  65. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  66. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  67. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  68. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  69. data/spec/dummy/config/application.rb +57 -0
  70. data/spec/dummy/config/boot.rb +10 -0
  71. data/spec/dummy/config/database.yml +9 -0
  72. data/spec/dummy/config/environment.rb +5 -0
  73. data/spec/dummy/config/environments/development.rb +37 -0
  74. data/spec/dummy/config/environments/production.rb +67 -0
  75. data/spec/dummy/config/environments/test.rb +44 -0
  76. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  77. data/spec/dummy/config/initializers/inflections.rb +15 -0
  78. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  79. data/spec/dummy/config/initializers/secret_token.rb +8 -0
  80. data/spec/dummy/config/initializers/session_store.rb +8 -0
  81. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  82. data/spec/dummy/config/locales/en.yml +5 -0
  83. data/spec/dummy/config/routes.rb +3 -0
  84. data/spec/dummy/config.ru +4 -0
  85. data/spec/dummy/db/migrate/20120610131537_create_spud_admin_permissions.spud_core.rb +12 -0
  86. data/spec/dummy/db/migrate/20120610131538_create_spud_users.spud_core.rb +30 -0
  87. data/spec/dummy/db/migrate/20120610131539_add_time_zone_to_spud_user.spud_core.rb +7 -0
  88. data/spec/dummy/db/migrate/20120610131540_add_scope_to_spud_admin_permissions.spud_core.rb +7 -0
  89. data/spec/dummy/db/migrate/20120610131541_create_spud_user_settings.spud_core.rb +12 -0
  90. data/spec/dummy/db/migrate/20140109151036_create_spud_roles.tb_core.rb +11 -0
  91. data/spec/dummy/db/migrate/20140109151037_create_spud_permissions.tb_core.rb +11 -0
  92. data/spec/dummy/db/migrate/20140109151038_create_spud_role_permissions.tb_core.rb +12 -0
  93. data/spec/dummy/db/migrate/20140109151039_drop_spud_admin_permissions.tb_core.rb +16 -0
  94. data/spec/dummy/db/migrate/20140109151040_create_spud_inquiries.spud_inquiries.rb +9 -0
  95. data/spec/dummy/db/migrate/20140109151041_create_spud_inquiry_fields.spud_inquiries.rb +14 -0
  96. data/spec/dummy/db/migrate/20140109151042_create_spud_inquiry_forms.spud_inquiries.rb +10 -0
  97. data/spec/dummy/db/migrate/20140109151043_create_spud_inquiry_form_fields.spud_inquiries.rb +13 -0
  98. data/spec/dummy/db/migrate/20140109151044_add_field_order_to_spud_inquiry_form_fields.spud_inquiries.rb +8 -0
  99. data/spec/dummy/db/migrate/20140109151045_add_spud_inquiry_form_id_to_spud_inquiries.spud_inquiries.rb +12 -0
  100. data/spec/dummy/db/migrate/20140109151046_add_recipients_to_spud_inquiry_forms.spud_inquiries.rb +7 -0
  101. data/spec/dummy/db/migrate/20140109151047_add_url_name_to_spud_inquiry_forms.spud_inquiries.rb +7 -0
  102. data/spec/dummy/db/migrate/20140109151048_change_inquiry_form_fields_column.spud_inquiries.rb +10 -0
  103. data/spec/dummy/db/migrate/20140109151049_add_thank_you_content_to_spud_inquiry_form.spud_inquiries.rb +6 -0
  104. data/spec/dummy/db/migrate/20140109151050_add_placeholder_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
  105. data/spec/dummy/db/migrate/20140109151051_add_submit_title_to_spud_inquiry_form.spud_inquiries.rb +6 -0
  106. data/spec/dummy/db/migrate/20140109151052_add_field_name_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
  107. data/spec/dummy/db/migrate/20140109151053_add_class_name_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
  108. data/spec/dummy/db/migrate/20140109151054_add_field_name_to_spud_inquiry_fields.spud_inquiries.rb +6 -0
  109. data/spec/dummy/db/migrate/20140110151647_create_tb_liquid_spud_liquid_tags.tb_liquid.rb +13 -0
  110. data/spec/dummy/db/schema.rb +143 -0
  111. data/spec/dummy/log/test.log +425 -0
  112. data/spec/dummy/public/404.html +26 -0
  113. data/spec/dummy/public/422.html +26 -0
  114. data/spec/dummy/public/500.html +25 -0
  115. data/spec/dummy/public/favicon.ico +0 -0
  116. data/spec/dummy/script/rails +6 -0
  117. data/spec/models/spud_inquiry_field_spec.rb +18 -0
  118. data/spec/models/spud_inquiry_form_field_spec.rb +36 -0
  119. data/spec/models/spud_inquiry_form_spec.rb +28 -0
  120. data/spec/models/spud_inquiry_spec.rb +22 -0
  121. data/spec/spec_helper.rb +49 -0
  122. data/spec/support/authlogic_helper.rb +2 -0
  123. metadata +384 -0
@@ -0,0 +1,425 @@
1
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
3
+  (0.9ms) SELECT DATABASE() as db
4
+  (28.1ms) select table_name from information_schema.views where table_schema = 'tb_inquiries_test'
5
+  (4.3ms) TRUNCATE TABLE `spud_inquiries`;
6
+  (2.0ms) TRUNCATE TABLE `spud_inquiry_fields`;
7
+  (1.8ms) TRUNCATE TABLE `spud_inquiry_form_fields`;
8
+  (1.8ms) TRUNCATE TABLE `spud_inquiry_forms`;
9
+  (1.8ms) TRUNCATE TABLE `spud_liquid_tags`;
10
+  (1.8ms) TRUNCATE TABLE `spud_permissions`;
11
+  (2.3ms) TRUNCATE TABLE `spud_role_permissions`;
12
+  (1.0ms) TRUNCATE TABLE `spud_roles`;
13
+  (1.3ms) TRUNCATE TABLE `spud_user_settings`;
14
+  (2.8ms) TRUNCATE TABLE `spud_users`;
15
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
16
+  (0.1ms) BEGIN
17
+ SpudInquiryForm Exists (6.3ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 1' LIMIT 1
18
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-1' LIMIT 1
19
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 1', '2014-02-12 21:43:39', 'form-1')
20
+ Processing by ContactsController#show as HTML
21
+ Parameters: {"id"=>"form-1"}
22
+ SpudInquiryForm Load (0.3ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = 'form-1' ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
23
+ SpudInquiryFormField Load (0.3ms) SELECT `spud_inquiry_form_fields`.* FROM `spud_inquiry_form_fields` WHERE `spud_inquiry_form_fields`.`spud_inquiry_form_id` IN (1) ORDER BY field_order asc
24
+ SpudInquiryForm Load (0.3ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 1 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
25
+ SpudInquiryFormField Load (0.2ms) SELECT `spud_inquiry_form_fields`.* FROM `spud_inquiry_form_fields` WHERE `spud_inquiry_form_fields`.`spud_inquiry_form_id` = 1 ORDER BY field_order asc, `spud_inquiry_form_fields`.`field_order` ASC
26
+ Rendered /Users/gregwoods/Source/twice_baked/tb_inquiries/app/views/contacts/show.html.erb within layouts/application (1.5ms)
27
+ Completed 200 OK in 68ms (Views: 8.6ms | ActiveRecord: 22.5ms)
28
+  (6.1ms) ROLLBACK
29
+  (0.1ms) BEGIN
30
+ Processing by ContactsController#show as HTML
31
+ Parameters: {"id"=>"1234"}
32
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = '1234' ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
33
+ Redirected to http://test.host/
34
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
35
+  (0.1ms) ROLLBACK
36
+  (0.1ms) BEGIN
37
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 2' LIMIT 1
38
+ SpudInquiryForm Exists (0.1ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-2' LIMIT 1
39
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 2', '2014-02-12 21:43:39', 'form-2')
40
+ SQL (0.3ms) INSERT INTO `spud_inquiry_form_fields` (`created_at`, `field_name`, `field_type`, `name`, `required`, `spud_inquiry_form_id`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'email', '0', 'email', 1, 2, '2014-02-12 21:43:39')
41
+ Processing by ContactsController#inquire as HTML
42
+ Parameters: {"spud_inquiry"=>{"spud_inquiry_form_id"=>"2"}, "other_email"=>"test@spamcastle.com"}
43
+ Redirected to http://test.host/
44
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
45
+  (0.4ms) ROLLBACK
46
+  (0.1ms) BEGIN
47
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 3' LIMIT 1
48
+ SpudInquiryForm Exists (0.1ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-3' LIMIT 1
49
+ SQL (0.1ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 3', '2014-02-12 21:43:39', 'form-3')
50
+ SQL (0.1ms) INSERT INTO `spud_inquiry_form_fields` (`created_at`, `field_name`, `field_type`, `name`, `required`, `spud_inquiry_form_id`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'email', '0', 'email', 1, 3, '2014-02-12 21:43:39')
51
+ Processing by ContactsController#inquire as HTML
52
+ Redirected to http://test.host/
53
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
54
+  (0.4ms) ROLLBACK
55
+  (0.1ms) BEGIN
56
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 4' LIMIT 1
57
+ SpudInquiryForm Exists (0.1ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-4' LIMIT 1
58
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 4', '2014-02-12 21:43:39', 'form-4')
59
+ SQL (0.2ms) INSERT INTO `spud_inquiry_form_fields` (`created_at`, `field_name`, `field_type`, `name`, `required`, `spud_inquiry_form_id`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'email', '0', 'email', 1, 4, '2014-02-12 21:43:39')
60
+ Processing by ContactsController#inquire as HTML
61
+ Parameters: {"spud_inquiry"=>{"spud_inquiry_form_id"=>"6"}}
62
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 6 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
63
+ Redirected to http://test.host/
64
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
65
+  (0.4ms) ROLLBACK
66
+  (0.1ms) BEGIN
67
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 5' LIMIT 1
68
+ SpudInquiryForm Exists (0.1ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-5' LIMIT 1
69
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 5', '2014-02-12 21:43:39', 'form-5')
70
+ SQL (0.1ms) INSERT INTO `spud_inquiry_form_fields` (`created_at`, `field_name`, `field_type`, `name`, `required`, `spud_inquiry_form_id`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'email', '0', 'email', 1, 5, '2014-02-12 21:43:39')
71
+ Processing by ContactsController#inquire as HTML
72
+ Parameters: {"spud_inquiry"=>{"spud_inquiry_form_id"=>"5"}}
73
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 5 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
74
+ SpudInquiryFormField Load (0.2ms) SELECT `spud_inquiry_form_fields`.* FROM `spud_inquiry_form_fields` WHERE `spud_inquiry_form_fields`.`spud_inquiry_form_id` = 5 ORDER BY field_order asc, `spud_inquiry_form_fields`.`field_order` ASC
75
+ Completed 422 Unprocessable Entity in 10ms (Views: 1.1ms | ActiveRecord: 0.4ms)
76
+  (5.8ms) ROLLBACK
77
+  (0.1ms) BEGIN
78
+ Processing by ContactsController#thankyou as HTML
79
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
80
+  (0.1ms) ROLLBACK
81
+  (0.1ms) BEGIN
82
+ Spud::SpudUserModel Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
83
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
84
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b59542924b2fe6777f109504da158e2cbd74c09114fd1783e757d5c7c9c91a75698f97807d0f00b6a56880a3e913dabfdc9bd8379fa3d99c17001af992710f57' LIMIT 1
85
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'iW9TOBxHnnodGqml5cIS' LIMIT 1
86
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', '00bafc613c8d8755edd9f8c6ab771ac5e4b209eff10486f56fd4db28d24ebf18ef4a428e8878a839058486bbc68865fb2885d11ff9b44f93a4cad3873b0798d1', 'test@testuser.com', 'testuser', 'l4KiwcyIPXUuFPAmOi67', 'iNZVUYZlgZJ2ZV5oUyAe', 'b59542924b2fe6777f109504da158e2cbd74c09114fd1783e757d5c7c9c91a75698f97807d0f00b6a56880a3e913dabfdc9bd8379fa3d99c17001af992710f57', 'iW9TOBxHnnodGqml5cIS', 1, '2014-02-12 21:43:39')
87
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'kXAz5nmgK1TjTs9jsM', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 1
88
+ SQL (0.2ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')
89
+ SQL (0.1ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')
90
+ Processing by Spud::Admin::InquiriesController#index as HTML
91
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1
92
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'jsNKpi8YFMFgTaHNNSH', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 1
93
+ Completed 200 OK in 293ms (Views: 2.7ms | ActiveRecord: 0.4ms)
94
+  (12.6ms) SELECT COUNT(*) FROM `spud_inquiries`
95
+  (6.5ms) ROLLBACK
96
+  (0.2ms) BEGIN
97
+ Spud::SpudUserModel Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
98
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
99
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '481282fdf58ab8e31c37ce033ee5e16681f64635c78466943259f37716fdbf4d123aecaf795f595bd2638f4f4bac4003b6cddc1ef3552847fea33afbd84f7dba' LIMIT 1
100
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ZaLcjXk18FZ5On8cxXUn' LIMIT 1
101
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', '6aac432be0982d77b59c60ed596a6f26b6b2a43a2359d1d4c2a3d447332fd081ec3d633dd8c51fad8033d2ca28d6c41f3fb1ed5bebede3d4fd8ec0f51eb21ba4', 'test@testuser.com', 'testuser', 'FH8QWi0TGcYbjuPVSnb', '62g4rPFTARbuRk4mfkXR', '481282fdf58ab8e31c37ce033ee5e16681f64635c78466943259f37716fdbf4d123aecaf795f595bd2638f4f4bac4003b6cddc1ef3552847fea33afbd84f7dba', 'ZaLcjXk18FZ5On8cxXUn', 1, '2014-02-12 21:43:39')
102
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'vUFcTud3ktWBYihZtgTL', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 2
103
+ SQL (0.1ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')
104
+ Processing by Spud::Admin::InquiriesController#show as HTML
105
+ Parameters: {"id"=>"3"}
106
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1
107
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'CUg50wamMn6gSlz2lpl', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 2
108
+ SpudInquiry Load (0.2ms) SELECT `spud_inquiries`.* FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 3 ORDER BY `spud_inquiries`.`id` ASC LIMIT 1
109
+ SpudInquiryField Load (0.2ms) SELECT `spud_inquiry_fields`.* FROM `spud_inquiry_fields` WHERE `spud_inquiry_fields`.`spud_inquiry_id` = 3
110
+ Completed 200 OK in 7ms (Views: 1.5ms | ActiveRecord: 0.8ms)
111
+  (0.8ms) ROLLBACK
112
+  (0.1ms) BEGIN
113
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
114
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
115
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4e4f0f59a254d781d743206d5213f9977f4854925e29bd1d2f8e2304582448829ac55795826a0c89af0b3db6e3c4726e02df16cb92619b1447de8516bd93ef98' LIMIT 1
116
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '3moPBI24GNvyjbNhJXgO' LIMIT 1
117
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'ff6c17f80fa8ba7aff0a16b24273301df3eb646ee0fdea2437afd57434bc1e71849c06e701bbc17248d6d19a618fc4eb2e4a54df97e0b6e0f1d3a7f6c8c4024c', 'test@testuser.com', 'testuser', 'eEJo5mcYZol67EcRttUL', 'P6QoRfOdf7Ph5oFIE5Lk', '4e4f0f59a254d781d743206d5213f9977f4854925e29bd1d2f8e2304582448829ac55795826a0c89af0b3db6e3c4726e02df16cb92619b1447de8516bd93ef98', '3moPBI24GNvyjbNhJXgO', 1, '2014-02-12 21:43:39')
118
+ SQL (0.3ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'DZsf1p4JyHLaNljfCCML', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 3
119
+ Processing by Spud::Admin::InquiriesController#show as HTML
120
+ Parameters: {"id"=>"1234"}
121
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1
122
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'myU7OetX3UcOTLsHIzCV', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 3
123
+ SpudInquiry Load (0.2ms) SELECT `spud_inquiries`.* FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 1234 ORDER BY `spud_inquiries`.`id` ASC LIMIT 1
124
+ Redirected to http://test.host/spud/admin/inquiries
125
+ Filter chain halted as :load_inquiries rendered or redirected
126
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
127
+  (0.8ms) ROLLBACK
128
+  (0.1ms) BEGIN
129
+ Spud::SpudUserModel Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
130
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
131
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '04fecdb551ccb3f7c123ae759ec0223ac9c63c54bdb88653f52c41b547d409daf81c1a0cf53f9cfc2acc9e441e1013f6e10a807b2d89d4eb9cb87e4e5f16fbcc' LIMIT 1
132
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'dc1j4NMDabFFyM4qmQUd' LIMIT 1
133
+ SQL (0.5ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', '6afe56601b89857a4b70b503af5d77f101ca3d8935dc0c9243729a6a7eebb35b3f5044f7bd9c0d2a7b144f59058950054dfb3ba2bea4f1962224277830a18353', 'test@testuser.com', 'testuser', 'y4ynhXl7lWKI0datmpt', 'pMbyv7Iz8rMjEcci7mgj', '04fecdb551ccb3f7c123ae759ec0223ac9c63c54bdb88653f52c41b547d409daf81c1a0cf53f9cfc2acc9e441e1013f6e10a807b2d89d4eb9cb87e4e5f16fbcc', 'dc1j4NMDabFFyM4qmQUd', 1, '2014-02-12 21:43:39')
134
+ SQL (0.9ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'TmKHx3yIhIXPHIQswCF', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 4
135
+ SQL (0.2ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')
136
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiries`
137
+ Processing by Spud::Admin::InquiriesController#destroy as HTML
138
+ Parameters: {"id"=>"4"}
139
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1
140
+ SQL (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'V6ZnBF0GTBXIpJvrmcq', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 4
141
+ SpudInquiry Load (0.2ms) SELECT `spud_inquiries`.* FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 4 ORDER BY `spud_inquiries`.`id` ASC LIMIT 1
142
+ SpudInquiryField Load (0.2ms) SELECT `spud_inquiry_fields`.* FROM `spud_inquiry_fields` WHERE `spud_inquiry_fields`.`spud_inquiry_id` = 4
143
+ SQL (0.2ms) DELETE FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 4
144
+ Redirected to http://test.host/spud/admin/inquiries
145
+ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
146
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiries`
147
+  (0.3ms) ROLLBACK
148
+  (0.1ms) BEGIN
149
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
150
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
151
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '04af85e9722e5670ec3ac5d73ea89a5442287639971c4456f670f3f2f21aee9f9169e832b75def2e5659a23a6a7e82a7d46878d79e5181818c173790cc4e8ee8' LIMIT 1
152
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Bn3J3DovM0al4ma8dUsU' LIMIT 1
153
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', '432ed549ef6dfc465765e9caeab1b813df31ac95a07a7c290cac119c48a5690212ec75a7961d4f701905bdb8269698952567ba9fd200cdb368f33af1f8663e8c', 'test@testuser.com', 'testuser', 'ilr7uJCTema2pERBR', 'oYsnAU47f1yHVFfr11Aw', '04af85e9722e5670ec3ac5d73ea89a5442287639971c4456f670f3f2f21aee9f9169e832b75def2e5659a23a6a7e82a7d46878d79e5181818c173790cc4e8ee8', 'Bn3J3DovM0al4ma8dUsU', 1, '2014-02-12 21:43:39')
154
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'CbvCYUMswQHKuWYmnuT', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 5
155
+ SQL (0.1ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')
156
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiries`
157
+ Processing by Spud::Admin::InquiriesController#destroy as HTML
158
+ Parameters: {"id"=>"23532"}
159
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1
160
+ SQL (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'j0SyQtFBjE31CUr6x9wY', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 5
161
+ SpudInquiry Load (0.2ms) SELECT `spud_inquiries`.* FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 23532 ORDER BY `spud_inquiries`.`id` ASC LIMIT 1
162
+ Redirected to http://test.host/spud/admin/inquiries
163
+ Filter chain halted as :load_inquiries rendered or redirected
164
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
165
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiries`
166
+  (0.7ms) ROLLBACK
167
+  (0.1ms) BEGIN
168
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
169
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
170
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8a02fe8e7bb9e2a442c5c1fd23b8ccdb692ba9e0f12a2050ec6f975e989a864d3cb6e5d322ca7754f35aa0daea68217023942b8a071b616274b9b0bc7472e1da' LIMIT 1
171
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'e0L14Q8vLHx7RLJCNka' LIMIT 1
172
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'ff4999e41e1b70c7626d7dc4af6e94862534e1e33c2544f8cb0b3fe043dfaa98fe0241d065fedfec689b4e4559c862f849e6e18e86bcf1ecef4b6110646e3969', 'test@testuser.com', 'testuser', 'KXKbblR9SSCDSzbR055', '1paAPXJDEDHn9w11OiaU', '8a02fe8e7bb9e2a442c5c1fd23b8ccdb692ba9e0f12a2050ec6f975e989a864d3cb6e5d322ca7754f35aa0daea68217023942b8a071b616274b9b0bc7472e1da', 'e0L14Q8vLHx7RLJCNka', 1, '2014-02-12 21:43:39')
173
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'kSJY7zjexDgQpUwoJdW', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 6
174
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 6' LIMIT 1
175
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-6' LIMIT 1
176
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 6', '2014-02-12 21:43:39', 'form-6')
177
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 7' LIMIT 1
178
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-7' LIMIT 1
179
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 7', '2014-02-12 21:43:39', 'form-7')
180
+ Processing by Spud::Admin::InquiryFormsController#index as HTML
181
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1
182
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'sLsx90ttLKIogwPRIj4', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 6
183
+ Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 0.5ms)
184
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
185
+  (5.0ms) ROLLBACK
186
+  (0.1ms) BEGIN
187
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
188
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
189
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '548613b17688d05eb46911c95a15ce8ae71a77b7540845438bc3077cc945977b795078e8d6497098dcdccb4a3c0f818c9b8f505b9f07f8885932333ed673e683' LIMIT 1
190
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'zWDCxeol5lm0Tw3CqxjN' LIMIT 1
191
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'e4473b720ede9ad9557c83649cc553cbcc80de70587622ded8afe35c4cb1083c20d8e27054a85bfa7702b05095239865862bb6fe67f44f907d59c2d8e5ea4030', 'test@testuser.com', 'testuser', 'pg7okgQPeHj09zqpfXgE', 'ZzMMQmTKbG9lwjow6Z7w', '548613b17688d05eb46911c95a15ce8ae71a77b7540845438bc3077cc945977b795078e8d6497098dcdccb4a3c0f818c9b8f505b9f07f8885932333ed673e683', 'zWDCxeol5lm0Tw3CqxjN', 1, '2014-02-12 21:43:39')
192
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'bJjqy7e09Ab3HtzWtYXP', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 7
193
+ Processing by Spud::Admin::InquiryFormsController#new as HTML
194
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1
195
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'z8RNoqg4A4nkvcC9wDEV', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 7
196
+ Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.5ms)
197
+  (0.5ms) ROLLBACK
198
+  (0.1ms) BEGIN
199
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
200
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
201
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b81abe4c72cdd9492c4be00007a90cb888e1b739a057d67ed467484808a0b31b5b2a19b57e319f7bd7af8ca693213dd2cb3255deac27a236373bf07247b415dc' LIMIT 1
202
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'GvjTRJa0Fc2SwsOq6yHC' LIMIT 1
203
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', '51aee91a8c87fccc316ce0057ddb995e026b5e3531768ef3f0fbb5b2cecbb306c659768273b2e45bd32533e668c396437a574f10e6d66b70f5c8f85efd86cab5', 'test@testuser.com', 'testuser', 'LwJQXlDUjU5p2X0ojDa4', 'DduGJfhNCSwO7EGFEmhw', 'b81abe4c72cdd9492c4be00007a90cb888e1b739a057d67ed467484808a0b31b5b2a19b57e319f7bd7af8ca693213dd2cb3255deac27a236373bf07247b415dc', 'GvjTRJa0Fc2SwsOq6yHC', 1, '2014-02-12 21:43:39')
204
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'jRoAWSFNrRCy7JBwJoa', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 8
205
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
206
+ Processing by Spud::Admin::InquiryFormsController#create as HTML
207
+ Parameters: {"spud_inquiry_form"=>{"name"=>"Form 8"}}
208
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1
209
+ SQL (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'pvemOsxdZkSemuEbJRiT', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 8
210
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 8' LIMIT 1
211
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-8' LIMIT 1
212
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 8', '2014-02-12 21:43:39', 'form-8')
213
+ Redirected to http://test.host/spud/admin/inquiry_forms
214
+ Completed 302 Found in 12ms (ActiveRecord: 1.2ms)
215
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
216
+  (11.6ms) ROLLBACK
217
+  (0.1ms) BEGIN
218
+ Spud::SpudUserModel Exists (0.3ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
219
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
220
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'cabb1717ebc0028fbc12842d1c31da9e35cbae418cdd90616802373873c7e9025faaf31726cc2274353fcbe581cbc668531a30b889c17e9fa2297318229e0e88' LIMIT 1
221
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'VHckZTlgrwYaLobufeRg' LIMIT 1
222
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', '72dfe1e077543386b7cbd534f01d64471fd340adff1c499cda87aec08c924d0b69206f5ae4f2457d7ca1a7db7c7e13d170314ef94b2440c598b547466ba6d236', 'test@testuser.com', 'testuser', 't2eMVrYEBHDKPCJdQ', '71pK5ZVnaSra3nva0OG', 'cabb1717ebc0028fbc12842d1c31da9e35cbae418cdd90616802373873c7e9025faaf31726cc2274353fcbe581cbc668531a30b889c17e9fa2297318229e0e88', 'VHckZTlgrwYaLobufeRg', 1, '2014-02-12 21:43:39')
223
+ SQL (0.3ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = '7nxAMJhD1O6CPpmEPME', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 9
224
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
225
+ Processing by Spud::Admin::InquiryFormsController#create as HTML
226
+ Parameters: {"spud_inquiry_form"=>{"name"=>nil}}
227
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1
228
+ SQL (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'Fs2TkQUmgnPqUQb7M4r', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 9
229
+ SpudInquiryForm Exists (0.3ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` IS NULL LIMIT 1
230
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` IS NULL LIMIT 1
231
+ Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.9ms)
232
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
233
+  (0.7ms) ROLLBACK
234
+  (0.1ms) BEGIN
235
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
236
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
237
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1708aa852f67488d0751f0931dde0c7754430e7e97a556349f95e94bae9cab9aab174aed14cc1e236a945e7dc511b5fee58700edbc378cf4acb31fd4b8d38b5d' LIMIT 1
238
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'upQd7F4U7qLtHN4VbAD4' LIMIT 1
239
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:39', 'af793b73e53b2ee07caa0e891b3bd8734eef79b63ff7fd08c833b538354cb2155c39d7da6c36c930884d7b44b584aadbaa9090066ec7bc492e3c64a408c7d318', 'test@testuser.com', 'testuser', '3RARH4KIrbgs9A77', 'Q3aiYYETxIXC2BUID9H', '1708aa852f67488d0751f0931dde0c7754430e7e97a556349f95e94bae9cab9aab174aed14cc1e236a945e7dc511b5fee58700edbc378cf4acb31fd4b8d38b5d', 'upQd7F4U7qLtHN4VbAD4', 1, '2014-02-12 21:43:39')
240
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:39', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:39', `perishable_token` = 'tCiqUx1aalX8VgDxu3b', `updated_at` = '2014-02-12 21:43:39' WHERE `spud_users`.`id` = 10
241
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 9' LIMIT 1
242
+ SpudInquiryForm Exists (0.1ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-9' LIMIT 1
243
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:39', 'Form 9', '2014-02-12 21:43:39', 'form-9')
244
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 10' LIMIT 1
245
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-10' LIMIT 1
246
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 10', '2014-02-12 21:43:40', 'form-10')
247
+ Processing by Spud::Admin::InquiryFormsController#edit as HTML
248
+ Parameters: {"id"=>"10"}
249
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1
250
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'lohCXSN1cArbuEaBYxe', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 10
251
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 10 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
252
+ Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.7ms)
253
+  (0.5ms) ROLLBACK
254
+  (0.1ms) BEGIN
255
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
256
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
257
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '319401cb636f2bc2fc997301fc9858115445e5ebf6e60b0056b63b94450a7c21724aa35a09ee8f0e755f9b3c6e526d07464b799def3c0cab322a85818557bec2' LIMIT 1
258
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'rlQ9iufiqQFE1Etkiq5' LIMIT 1
259
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:40', 'c0f70709507fcb8942895d2999c3a861959e41ece859a5fcaf70614ed541869966d33527ab165e3220702101cbc4eefdeda5ea61a96f496237d520c0d80e2b2d', 'test@testuser.com', 'testuser', '8B8XMd0mNXRoIdZnPU8', 'Srkxki5OZpNxYonTEVlg', '319401cb636f2bc2fc997301fc9858115445e5ebf6e60b0056b63b94450a7c21724aa35a09ee8f0e755f9b3c6e526d07464b799def3c0cab322a85818557bec2', 'rlQ9iufiqQFE1Etkiq5', 1, '2014-02-12 21:43:40')
260
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:40', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'xg3MbatcPP5ksGwtxqr', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 11
261
+ Processing by Spud::Admin::InquiryFormsController#edit as HTML
262
+ Parameters: {"id"=>"1234"}
263
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 11 LIMIT 1
264
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'zPiir14ZzXQDbV4vKQtr', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 11
265
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 1234 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
266
+ Redirected to http://test.host/spud/admin/inquiry_forms
267
+ Filter chain halted as :load_form rendered or redirected
268
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
269
+  (0.4ms) ROLLBACK
270
+  (0.1ms) BEGIN
271
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
272
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
273
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2222fd48a0079b24a32c257f595cea049bc9abcc8865ed99ce9fbaa352915aa8d9c6b03418ef553386ba7280c037f8bb37fdb75bb7637d0761d8e5a59022b2b2' LIMIT 1
274
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '62JP9tuvxB0YaxprxhT' LIMIT 1
275
+ SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:40', 'b6273616219f983c8e7601cba81fa6f2f0a194b001eb6226edc3a5b170c34a32c45ac3a194aedf91682ff801e4a2115a8d0fa6d3ae3ddfef90f84ec744609fed', 'test@testuser.com', 'testuser', 'VaI7t8uzjDsxlAhtMgE', '7iQzBIag9MlPIBWgmDM', '2222fd48a0079b24a32c257f595cea049bc9abcc8865ed99ce9fbaa352915aa8d9c6b03418ef553386ba7280c037f8bb37fdb75bb7637d0761d8e5a59022b2b2', '62JP9tuvxB0YaxprxhT', 1, '2014-02-12 21:43:40')
276
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:40', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'nfqwBvWIOy31fydFvuc', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 12
277
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 11' LIMIT 1
278
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-11' LIMIT 1
279
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 11', '2014-02-12 21:43:40', 'form-11')
280
+ Processing by Spud::Admin::InquiryFormsController#update as HTML
281
+ Parameters: {"spud_inquiry_form"=>{"name"=>"MyForm", "content"=>nil, "created_at"=>"2014-02-12 21:43:40 UTC", "updated_at"=>"2014-02-12 21:43:40 UTC", "recipients"=>nil, "subject"=>nil, "url_name"=>"form-11", "thank_you_content"=>nil, "submit_title"=>nil}, "id"=>"11"}
282
+ SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 12 LIMIT 1
283
+ SQL (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'RE6hzWTpH5HLbkFYS', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 12
284
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 11 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
285
+ Unpermitted parameters: created_at, updated_at
286
+ SpudInquiryForm Exists (0.3ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE (`spud_inquiry_forms`.`name` = BINARY 'MyForm' AND `spud_inquiry_forms`.`id` != 11) LIMIT 1
287
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE (`spud_inquiry_forms`.`url_name` = BINARY 'myform' AND `spud_inquiry_forms`.`id` != 11) LIMIT 1
288
+ SQL (0.3ms) UPDATE `spud_inquiry_forms` SET `name` = 'MyForm', `url_name` = 'myform', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_inquiry_forms`.`id` = 11
289
+ SpudLiquidTag Load (0.3ms) SELECT `spud_liquid_tags`.* FROM `spud_liquid_tags` WHERE `spud_liquid_tags`.`tag_name` = 'inquiry' AND `spud_liquid_tags`.`value` IN ('MyForm', 'Form 11')
290
+ Redirected to http://test.host/spud/admin/inquiry_forms
291
+ Completed 302 Found in 37ms (ActiveRecord: 20.3ms)
292
+ SpudInquiryForm Load (0.3ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 11 LIMIT 1
293
+  (0.5ms) ROLLBACK
294
+  (0.1ms) BEGIN
295
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
296
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
297
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '653ea5f90fd4f54bf0837e1c9f820791fbf8ab03e0f09b24be498ebe80621652a6084862bd59b6c8ecd7a2f15bd0b77be89496c2b4ad2a34e1c0aa1a4328cbc5' LIMIT 1
298
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Nv1wtEb7ahcS7tyJqxj' LIMIT 1
299
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:40', 'b0e6d56f2f9668d92b8deef249f081ccb1025b9959ceda328db50416c428e7aa86abf8c8ca6e5d6e1e93347b88a1c5dc6a9cb614e54a73f27fc212c43c08d438', 'test@testuser.com', 'testuser', 'U6YO23uac56Yhm7QMZmv', 'u42B6NcMJlcUE58Q1zj', '653ea5f90fd4f54bf0837e1c9f820791fbf8ab03e0f09b24be498ebe80621652a6084862bd59b6c8ecd7a2f15bd0b77be89496c2b4ad2a34e1c0aa1a4328cbc5', 'Nv1wtEb7ahcS7tyJqxj', 1, '2014-02-12 21:43:40')
300
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:40', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'yGcIJbg4iCxHD0fLfMf8', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 13
301
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 12' LIMIT 1
302
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-12' LIMIT 1
303
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 12', '2014-02-12 21:43:40', 'form-12')
304
+ Processing by Spud::Admin::InquiryFormsController#update as HTML
305
+ Parameters: {"spud_inquiry_form"=>{"name"=>"MyForm", "content"=>nil, "created_at"=>"2014-02-12 21:43:40 UTC", "updated_at"=>"2014-02-12 21:43:40 UTC", "recipients"=>nil, "subject"=>nil, "url_name"=>"form-12", "thank_you_content"=>nil, "submit_title"=>nil}, "id"=>"12"}
306
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 13 LIMIT 1
307
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'amMQp78hG4ZJUUwUPmvd', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 13
308
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 12 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
309
+ Unpermitted parameters: created_at, updated_at
310
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE (`spud_inquiry_forms`.`name` = BINARY 'MyForm' AND `spud_inquiry_forms`.`id` != 12) LIMIT 1
311
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE (`spud_inquiry_forms`.`url_name` = BINARY 'myform' AND `spud_inquiry_forms`.`id` != 12) LIMIT 1
312
+ SQL (0.2ms) UPDATE `spud_inquiry_forms` SET `name` = 'MyForm', `url_name` = 'myform', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_inquiry_forms`.`id` = 12
313
+ SpudLiquidTag Load (0.2ms) SELECT `spud_liquid_tags`.* FROM `spud_liquid_tags` WHERE `spud_liquid_tags`.`tag_name` = 'inquiry' AND `spud_liquid_tags`.`value` IN ('MyForm', 'Form 12')
314
+ Redirected to http://test.host/spud/admin/inquiry_forms
315
+ Completed 302 Found in 8ms (ActiveRecord: 1.4ms)
316
+  (0.6ms) ROLLBACK
317
+  (0.1ms) BEGIN
318
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
319
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
320
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ba54bd945e49aaacd2fa7cf30aa259779fefe05401efd9dd9ebb0a9d2633f2d2fa68660b047cdd838587225f0d46376a1ac0e64642f5e5af083d0ad83cadefce' LIMIT 1
321
+ Spud::SpudUserModel Exists (0.1ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'quOfgHJ862PeUxvjm9ai' LIMIT 1
322
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:40', '8e67a3ad5e3a6ebb6181db8d232227cfa01fd9f521247b7aac4ac3f05a56bffbcf07ee6536901379540f906e3b094412e5b711cf76cb974e8419895b90f06b3c', 'test@testuser.com', 'testuser', 'n4Q90veVaE9nc7QvL8cE', 'KSI6A8ErrJnowPK77eO', 'ba54bd945e49aaacd2fa7cf30aa259779fefe05401efd9dd9ebb0a9d2633f2d2fa68660b047cdd838587225f0d46376a1ac0e64642f5e5af083d0ad83cadefce', 'quOfgHJ862PeUxvjm9ai', 1, '2014-02-12 21:43:40')
323
+ SQL (0.3ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:40', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'MsPay6TlZyqS8SR4oG2', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 14
324
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 13' LIMIT 1
325
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-13' LIMIT 1
326
+ SQL (0.1ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 13', '2014-02-12 21:43:40', 'form-13')
327
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
328
+ Processing by Spud::Admin::InquiryFormsController#destroy as HTML
329
+ Parameters: {"id"=>"13"}
330
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 14 LIMIT 1
331
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'NwnfSofOSLYOSE5y36Nv', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 14
332
+ SpudInquiryForm Load (0.2ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 13 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
333
+ SQL (0.2ms) UPDATE `spud_inquiries` SET `spud_inquiries`.`spud_inquiry_form_id` = NULL WHERE `spud_inquiries`.`spud_inquiry_form_id` = 13
334
+ SpudInquiryFormField Load (0.2ms) SELECT `spud_inquiry_form_fields`.* FROM `spud_inquiry_form_fields` WHERE `spud_inquiry_form_fields`.`spud_inquiry_form_id` = 13 ORDER BY field_order asc
335
+ SQL (0.2ms) DELETE FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 13
336
+ Redirected to http://test.host/spud/admin/inquiry_forms
337
+ Completed 302 Found in 12ms (ActiveRecord: 1.2ms)
338
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
339
+  (0.8ms) ROLLBACK
340
+  (0.1ms) BEGIN
341
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
342
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
343
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fb67f064edc548e3abde2092843181b2d330c69e9cb199b2287a41e62d11a6e8ff3a4f5785eceb9b20b5081246ca160f4c1f0c49c3af0c3c345b64591a0bdc31' LIMIT 1
344
+ Spud::SpudUserModel Exists (0.2ms) SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'tWZiZK0HZhO6aASvNZOP' LIMIT 1
345
+ SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `email`, `login`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `updated_at`) VALUES ('2014-02-12 21:43:40', 'eb3c74f2d2d76ad34cefa3091f8faefef1437df9ab457623583b9f8b31fbabf70a372dc0208b69137b1b585d51088fef19c11309093c0c4b226674bbf7471574', 'test@testuser.com', 'testuser', '8APx6SaQ5DBnuL7ufv52', '38ZdSsc3dvOkvniba6G', 'fb67f064edc548e3abde2092843181b2d330c69e9cb199b2287a41e62d11a6e8ff3a4f5785eceb9b20b5081246ca160f4c1f0c49c3af0c3c345b64591a0bdc31', 'tWZiZK0HZhO6aASvNZOP', 1, '2014-02-12 21:43:40')
346
+ SQL (0.2ms) UPDATE `spud_users` SET `login_count` = 1, `current_login_at` = '2014-02-12 21:43:40', `current_login_ip` = '0.0.0.0', `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'ViSYSkViqQWIoBTAJRPp', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 15
347
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 14' LIMIT 1
348
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-14' LIMIT 1
349
+ SQL (0.1ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 14', '2014-02-12 21:43:40', 'form-14')
350
+  (0.2ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
351
+ Processing by Spud::Admin::InquiryFormsController#destroy as HTML
352
+ Parameters: {"id"=>"23532"}
353
+ SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 15 LIMIT 1
354
+ SQL (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2014-02-12 21:43:40', `perishable_token` = 'fH0d16uTontWnSP7tJ4X', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_users`.`id` = 15
355
+ SpudInquiryForm Load (0.1ms) SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 23532 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
356
+ Redirected to http://test.host/spud/admin/inquiry_forms
357
+ Filter chain halted as :load_form rendered or redirected
358
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
359
+  (0.1ms) SELECT COUNT(*) FROM `spud_inquiry_forms`
360
+  (0.6ms) ROLLBACK
361
+  (0.1ms) BEGIN
362
+ Processing by Spud::Inquiries::SitemapsController#show as XML
363
+ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.0ms)
364
+  (0.2ms) ROLLBACK
365
+  (0.1ms) BEGIN
366
+ Processing by Spud::Inquiries::SitemapsController#show as HTML
367
+ Completed 406 Not Acceptable in 1ms
368
+  (0.2ms) ROLLBACK
369
+  (0.1ms) BEGIN
370
+  (0.1ms) ROLLBACK
371
+  (0.1ms) BEGIN
372
+ SQL (0.3ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:40', '2014-02-12 21:43:40')
373
+  (6.0ms) ROLLBACK
374
+  (0.1ms) BEGIN
375
+  (0.1ms) ROLLBACK
376
+  (0.1ms) BEGIN
377
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 15' LIMIT 1
378
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-15' LIMIT 1
379
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 15', '2014-02-12 21:43:40', 'form-15')
380
+  (0.4ms) ROLLBACK
381
+  (0.2ms) BEGIN
382
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 16' LIMIT 1
383
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-16' LIMIT 1
384
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 16', '2014-02-12 21:43:40', 'form-16')
385
+  (0.4ms) ROLLBACK
386
+  (0.1ms) BEGIN
387
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 17' LIMIT 1
388
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-17' LIMIT 1
389
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 17', '2014-02-12 21:43:40', 'form-17')
390
+  (0.3ms) ROLLBACK
391
+  (0.1ms) BEGIN
392
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 18' LIMIT 1
393
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-18' LIMIT 1
394
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Form 18', '2014-02-12 21:43:40', 'form-18')
395
+  (0.4ms) ROLLBACK
396
+  (0.1ms) BEGIN
397
+  (0.1ms) ROLLBACK
398
+  (0.1ms) BEGIN
399
+  (0.1ms) ROLLBACK
400
+  (0.1ms) BEGIN
401
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` IS NULL LIMIT 1
402
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` IS NULL LIMIT 1
403
+  (0.1ms) ROLLBACK
404
+  (0.1ms) BEGIN
405
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Test' LIMIT 1
406
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'test' LIMIT 1
407
+ SQL (0.2ms) INSERT INTO `spud_inquiry_forms` (`created_at`, `name`, `updated_at`, `url_name`) VALUES ('2014-02-12 21:43:40', 'Test', '2014-02-12 21:43:40', 'test')
408
+ SpudInquiryForm Exists (0.1ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Test' LIMIT 1
409
+ SpudInquiryForm Exists (0.2ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'test' LIMIT 1
410
+  (0.3ms) ROLLBACK
411
+  (0.1ms) BEGIN
412
+ SpudInquiryForm Exists (0.1ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Contact Us' LIMIT 1
413
+ SpudInquiryForm Exists (0.3ms) SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'contact-us' LIMIT 1
414
+  (0.1ms) ROLLBACK
415
+  (0.1ms) BEGIN
416
+  (0.1ms) ROLLBACK
417
+  (0.1ms) BEGIN
418
+  (0.1ms) ROLLBACK
419
+  (0.1ms) BEGIN
420
+ SQL (0.2ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:40', '2014-02-12 21:43:40')
421
+ SQL (0.2ms) INSERT INTO `spud_inquiry_fields` (`created_at`, `name`, `spud_inquiry_id`, `updated_at`, `value`) VALUES ('2014-02-12 21:43:40', 'email', 7, '2014-02-12 21:43:40', 'test@spudcms.net')
422
+  (0.3ms) ROLLBACK
423
+  (0.1ms) BEGIN
424
+ SQL (0.2ms) INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:40', '2014-02-12 21:43:40')
425
+  (0.3ms) ROLLBACK
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe SpudInquiryField do
4
+
5
+ it {should belong_to(:spud_inquiry)}
6
+
7
+ describe :validations do
8
+ it "should save if validations pass" do
9
+ p = FactoryGirl.build(:spud_inquiry_field)
10
+ p.should be_valid
11
+ end
12
+
13
+ # it "should not be valid if inquiry is blank" do
14
+ # p = FactoryGirl.build(:spud_inquiry_field, :spud_inquiry => nil)
15
+ # p.should_not be_valid
16
+ # end
17
+ end
18
+ end