tb_inquiries 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +76 -0
- data/Rakefile +28 -0
- data/app/assets/images/spud/admin/contacts_thumb.png +0 -0
- data/app/assets/javascripts/spud/admin/inquiries.js +8 -0
- data/app/assets/javascripts/spud/inquiries/sitemaps.js +2 -0
- data/app/assets/stylesheets/spud/admin/inquiries.css +4 -0
- data/app/assets/stylesheets/spud/inquiries/sitemaps.css +4 -0
- data/app/controllers/contacts_controller.rb +82 -0
- data/app/controllers/spud/admin/inquiries_controller.rb +38 -0
- data/app/controllers/spud/admin/inquiry_forms_controller.rb +58 -0
- data/app/controllers/spud/inquiries/sitemaps_controller.rb +7 -0
- data/app/helpers/contacts_helper.rb +3 -0
- data/app/mailers/spud/inquiry_mailer.rb +10 -0
- data/app/models/spud_inquiry.rb +46 -0
- data/app/models/spud_inquiry_field.rb +13 -0
- data/app/models/spud_inquiry_form.rb +27 -0
- data/app/models/spud_inquiry_form_field.rb +21 -0
- data/app/views/contacts/_show.html.erb +45 -0
- data/app/views/contacts/show.html.erb +4 -0
- data/app/views/contacts/show.js.erb +1 -0
- data/app/views/contacts/thankyou.html.erb +2 -0
- data/app/views/contacts/thankyou.js.erb +1 -0
- data/app/views/layouts/spud/inquiries/detail.html.erb +6 -0
- data/app/views/spud/admin/inquiries/index.html.erb +30 -0
- data/app/views/spud/admin/inquiries/show.html.erb +8 -0
- data/app/views/spud/admin/inquiry_forms/_form.html.erb +52 -0
- data/app/views/spud/admin/inquiry_forms/_spud_inquiry_form_field_fields.html.erb +56 -0
- data/app/views/spud/admin/inquiry_forms/edit.html.erb +6 -0
- data/app/views/spud/admin/inquiry_forms/index.html.erb +22 -0
- data/app/views/spud/admin/inquiry_forms/new.html.erb +9 -0
- data/app/views/spud/inquiries/sitemaps/show.xml.builder +16 -0
- data/app/views/spud/inquiry_mailer/inquiry_notification.html.erb +15 -0
- data/app/views/spud/inquiry_mailer/inquiry_notification.text.erb +7 -0
- data/config/routes.rb +16 -0
- data/db/migrate/20120117133405_create_spud_inquiries.rb +8 -0
- data/db/migrate/20120117133412_create_spud_inquiry_fields.rb +13 -0
- data/db/migrate/20120121194439_create_spud_inquiry_forms.rb +9 -0
- data/db/migrate/20120121194447_create_spud_inquiry_form_fields.rb +12 -0
- data/db/migrate/20120122173829_add_field_order_to_spud_inquiry_form_fields.rb +7 -0
- data/db/migrate/20120126132407_add_spud_inquiry_form_id_to_spud_inquiries.rb +11 -0
- data/db/migrate/20120126132522_add_recipients_to_spud_inquiry_forms.rb +6 -0
- data/db/migrate/20120127023335_add_url_name_to_spud_inquiry_forms.rb +6 -0
- data/db/migrate/20120413124900_change_inquiry_form_fields_column.rb +9 -0
- data/db/migrate/20121228145215_add_thank_you_content_to_spud_inquiry_form.rb +5 -0
- data/db/migrate/20130627121030_add_placeholder_to_spud_inquiry_form_fields.rb +5 -0
- data/db/migrate/20131111143656_add_submit_title_to_spud_inquiry_form.rb +5 -0
- data/db/migrate/20131111143945_add_field_name_to_spud_inquiry_form_fields.rb +5 -0
- data/db/migrate/20131111144731_add_class_name_to_spud_inquiry_form_fields.rb +5 -0
- data/db/migrate/20131204163221_add_field_name_to_spud_inquiry_fields.rb +5 -0
- data/lib/spud_inquiries/configuration.rb +16 -0
- data/lib/spud_inquiries/engine.rb +28 -0
- data/lib/spud_inquiries/liquid_form.rb +47 -0
- data/lib/spud_inquiries/version.rb +5 -0
- data/lib/tasks/spud_inquiries_tasks.rake +4 -0
- data/lib/tb_inquiries.rb +7 -0
- data/spec/controllers/contacts_controller_spec.rb +69 -0
- data/spec/controllers/spud/admin/inquiries_controller_spec.rb +55 -0
- data/spec/controllers/spud/admin/inquiry_forms_controller_spec.rb +98 -0
- data/spec/controllers/spud/inquiries/sitemaps_controller_spec.rb +24 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +57 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +9 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +44 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +8 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20120610131537_create_spud_admin_permissions.spud_core.rb +12 -0
- data/spec/dummy/db/migrate/20120610131538_create_spud_users.spud_core.rb +30 -0
- data/spec/dummy/db/migrate/20120610131539_add_time_zone_to_spud_user.spud_core.rb +7 -0
- data/spec/dummy/db/migrate/20120610131540_add_scope_to_spud_admin_permissions.spud_core.rb +7 -0
- data/spec/dummy/db/migrate/20120610131541_create_spud_user_settings.spud_core.rb +12 -0
- data/spec/dummy/db/migrate/20140109151036_create_spud_roles.tb_core.rb +11 -0
- data/spec/dummy/db/migrate/20140109151037_create_spud_permissions.tb_core.rb +11 -0
- data/spec/dummy/db/migrate/20140109151038_create_spud_role_permissions.tb_core.rb +12 -0
- data/spec/dummy/db/migrate/20140109151039_drop_spud_admin_permissions.tb_core.rb +16 -0
- data/spec/dummy/db/migrate/20140109151040_create_spud_inquiries.spud_inquiries.rb +9 -0
- data/spec/dummy/db/migrate/20140109151041_create_spud_inquiry_fields.spud_inquiries.rb +14 -0
- data/spec/dummy/db/migrate/20140109151042_create_spud_inquiry_forms.spud_inquiries.rb +10 -0
- data/spec/dummy/db/migrate/20140109151043_create_spud_inquiry_form_fields.spud_inquiries.rb +13 -0
- data/spec/dummy/db/migrate/20140109151044_add_field_order_to_spud_inquiry_form_fields.spud_inquiries.rb +8 -0
- data/spec/dummy/db/migrate/20140109151045_add_spud_inquiry_form_id_to_spud_inquiries.spud_inquiries.rb +12 -0
- data/spec/dummy/db/migrate/20140109151046_add_recipients_to_spud_inquiry_forms.spud_inquiries.rb +7 -0
- data/spec/dummy/db/migrate/20140109151047_add_url_name_to_spud_inquiry_forms.spud_inquiries.rb +7 -0
- data/spec/dummy/db/migrate/20140109151048_change_inquiry_form_fields_column.spud_inquiries.rb +10 -0
- data/spec/dummy/db/migrate/20140109151049_add_thank_you_content_to_spud_inquiry_form.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151050_add_placeholder_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151051_add_submit_title_to_spud_inquiry_form.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151052_add_field_name_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151053_add_class_name_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151054_add_field_name_to_spud_inquiry_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140110151647_create_tb_liquid_spud_liquid_tags.tb_liquid.rb +13 -0
- data/spec/dummy/db/schema.rb +143 -0
- data/spec/dummy/log/test.log +425 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/models/spud_inquiry_field_spec.rb +18 -0
- data/spec/models/spud_inquiry_form_field_spec.rb +36 -0
- data/spec/models/spud_inquiry_form_spec.rb +28 -0
- data/spec/models/spud_inquiry_spec.rb +22 -0
- data/spec/spec_helper.rb +49 -0
- data/spec/support/authlogic_helper.rb +2 -0
- metadata +384 -0
@@ -0,0 +1,425 @@
|
|
1
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
2
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
3
|
+
[1m[36m (0.9ms)[0m [1mSELECT DATABASE() as db[0m
|
4
|
+
[1m[35m (28.1ms)[0m select table_name from information_schema.views where table_schema = 'tb_inquiries_test'
|
5
|
+
[1m[36m (4.3ms)[0m [1mTRUNCATE TABLE `spud_inquiries`;[0m
|
6
|
+
[1m[35m (2.0ms)[0m TRUNCATE TABLE `spud_inquiry_fields`;
|
7
|
+
[1m[36m (1.8ms)[0m [1mTRUNCATE TABLE `spud_inquiry_form_fields`;[0m
|
8
|
+
[1m[35m (1.8ms)[0m TRUNCATE TABLE `spud_inquiry_forms`;
|
9
|
+
[1m[36m (1.8ms)[0m [1mTRUNCATE TABLE `spud_liquid_tags`;[0m
|
10
|
+
[1m[35m (1.8ms)[0m TRUNCATE TABLE `spud_permissions`;
|
11
|
+
[1m[36m (2.3ms)[0m [1mTRUNCATE TABLE `spud_role_permissions`;[0m
|
12
|
+
[1m[35m (1.0ms)[0m TRUNCATE TABLE `spud_roles`;
|
13
|
+
[1m[36m (1.3ms)[0m [1mTRUNCATE TABLE `spud_user_settings`;[0m
|
14
|
+
[1m[35m (2.8ms)[0m TRUNCATE TABLE `spud_users`;
|
15
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
16
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17
|
+
[1m[36mSpudInquiryForm Exists (6.3ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 1' LIMIT 1[0m
|
18
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-1' LIMIT 1
|
19
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
20
|
+
Processing by ContactsController#show as HTML
|
21
|
+
Parameters: {"id"=>"form-1"}
|
22
|
+
[1m[35mSpudInquiryForm Load (0.3ms)[0m 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
|
+
[1m[36mSpudInquiryFormField Load (0.3ms)[0m [1mSELECT `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[0m
|
24
|
+
[1m[35mSpudInquiryForm Load (0.3ms)[0m SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 1 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
|
25
|
+
[1m[36mSpudInquiryFormField Load (0.2ms)[0m [1mSELECT `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[0m
|
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
|
+
[1m[35m (6.1ms)[0m ROLLBACK
|
29
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30
|
+
Processing by ContactsController#show as HTML
|
31
|
+
Parameters: {"id"=>"1234"}
|
32
|
+
[1m[35mSpudInquiryForm Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
36
|
+
[1m[35m (0.1ms)[0m BEGIN
|
37
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 2' LIMIT 1[0m
|
38
|
+
[1m[35mSpudInquiryForm Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-2' LIMIT 1
|
39
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
40
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
46
|
+
[1m[35m (0.1ms)[0m BEGIN
|
47
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 3' LIMIT 1[0m
|
48
|
+
[1m[35mSpudInquiryForm Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-3' LIMIT 1
|
49
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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')[0m
|
50
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
55
|
+
[1m[35m (0.1ms)[0m BEGIN
|
56
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 4' LIMIT 1[0m
|
57
|
+
[1m[35mSpudInquiryForm Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-4' LIMIT 1
|
58
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
59
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Load (0.2ms)[0m [1mSELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 6 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1[0m
|
63
|
+
Redirected to http://test.host/
|
64
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
65
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
66
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
67
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 5' LIMIT 1
|
68
|
+
[1m[36mSpudInquiryForm Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-5' LIMIT 1[0m
|
69
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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')[0m
|
71
|
+
Processing by ContactsController#inquire as HTML
|
72
|
+
Parameters: {"spud_inquiry"=>{"spud_inquiry_form_id"=>"5"}}
|
73
|
+
[1m[35mSpudInquiryForm Load (0.2ms)[0m SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 5 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
|
74
|
+
[1m[36mSpudInquiryFormField Load (0.2ms)[0m [1mSELECT `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[0m
|
75
|
+
Completed 422 Unprocessable Entity in 10ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
76
|
+
[1m[35m (5.8ms)[0m ROLLBACK
|
77
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78
|
+
Processing by ContactsController#thankyou as HTML
|
79
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
80
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
81
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
82
|
+
[1m[35mSpud::SpudUserModel Exists (0.3ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
|
83
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1[0m
|
84
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b59542924b2fe6777f109504da158e2cbd74c09114fd1783e757d5c7c9c91a75698f97807d0f00b6a56880a3e913dabfdc9bd8379fa3d99c17001af992710f57' LIMIT 1
|
85
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'iW9TOBxHnnodGqml5cIS' LIMIT 1[0m
|
86
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
88
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')
|
89
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')[0m
|
90
|
+
Processing by Spud::Admin::InquiriesController#index as HTML
|
91
|
+
[1m[35mSpudUser Load (0.2ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1
|
92
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
93
|
+
Completed 200 OK in 293ms (Views: 2.7ms | ActiveRecord: 0.4ms)
|
94
|
+
[1m[35m (12.6ms)[0m SELECT COUNT(*) FROM `spud_inquiries`
|
95
|
+
[1m[36m (6.5ms)[0m [1mROLLBACK[0m
|
96
|
+
[1m[35m (0.2ms)[0m BEGIN
|
97
|
+
[1m[36mSpud::SpudUserModel Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
98
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
99
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '481282fdf58ab8e31c37ce033ee5e16681f64635c78466943259f37716fdbf4d123aecaf795f595bd2638f4f4bac4003b6cddc1ef3552847fea33afbd84f7dba' LIMIT 1[0m
|
100
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ZaLcjXk18FZ5On8cxXUn' LIMIT 1
|
101
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
102
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')[0m
|
104
|
+
Processing by Spud::Admin::InquiriesController#show as HTML
|
105
|
+
Parameters: {"id"=>"3"}
|
106
|
+
[1m[35mSpudUser Load (0.2ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1
|
107
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
108
|
+
[1m[35mSpudInquiry Load (0.2ms)[0m SELECT `spud_inquiries`.* FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 3 ORDER BY `spud_inquiries`.`id` ASC LIMIT 1
|
109
|
+
[1m[36mSpudInquiryField Load (0.2ms)[0m [1mSELECT `spud_inquiry_fields`.* FROM `spud_inquiry_fields` WHERE `spud_inquiry_fields`.`spud_inquiry_id` = 3[0m
|
110
|
+
Completed 200 OK in 7ms (Views: 1.5ms | ActiveRecord: 0.8ms)
|
111
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
112
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
113
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
|
114
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1[0m
|
115
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4e4f0f59a254d781d743206d5213f9977f4854925e29bd1d2f8e2304582448829ac55795826a0c89af0b3db6e3c4726e02df16cb92619b1447de8516bd93ef98' LIMIT 1
|
116
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '3moPBI24GNvyjbNhJXgO' LIMIT 1[0m
|
117
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `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[0m
|
119
|
+
Processing by Spud::Admin::InquiriesController#show as HTML
|
120
|
+
Parameters: {"id"=>"1234"}
|
121
|
+
[1m[35mSpudUser Load (0.2ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1
|
122
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
123
|
+
[1m[35mSpudInquiry Load (0.2ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
128
|
+
[1m[35m (0.1ms)[0m BEGIN
|
129
|
+
[1m[36mSpud::SpudUserModel Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
130
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
131
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '04fecdb551ccb3f7c123ae759ec0223ac9c63c54bdb88653f52c41b547d409daf81c1a0cf53f9cfc2acc9e441e1013f6e10a807b2d89d4eb9cb87e4e5f16fbcc' LIMIT 1[0m
|
132
|
+
[1m[35mSpud::SpudUserModel Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'dc1j4NMDabFFyM4qmQUd' LIMIT 1
|
133
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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')[0m
|
134
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')[0m
|
136
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiries`
|
137
|
+
Processing by Spud::Admin::InquiriesController#destroy as HTML
|
138
|
+
Parameters: {"id"=>"4"}
|
139
|
+
[1m[36mSpudUser Load (0.3ms)[0m [1mSELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1[0m
|
140
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSpudInquiry Load (0.2ms)[0m [1mSELECT `spud_inquiries`.* FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 4 ORDER BY `spud_inquiries`.`id` ASC LIMIT 1[0m
|
142
|
+
[1m[35mSpudInquiryField Load (0.2ms)[0m SELECT `spud_inquiry_fields`.* FROM `spud_inquiry_fields` WHERE `spud_inquiry_fields`.`spud_inquiry_id` = 4
|
143
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 4[0m
|
144
|
+
Redirected to http://test.host/spud/admin/inquiries
|
145
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
|
146
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiries`
|
147
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
148
|
+
[1m[35m (0.1ms)[0m BEGIN
|
149
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
150
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
151
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '04af85e9722e5670ec3ac5d73ea89a5442287639971c4456f670f3f2f21aee9f9169e832b75def2e5659a23a6a7e82a7d46878d79e5181818c173790cc4e8ee8' LIMIT 1[0m
|
152
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Bn3J3DovM0al4ma8dUsU' LIMIT 1
|
153
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
154
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:39', '2014-02-12 21:43:39')[0m
|
156
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiries`
|
157
|
+
Processing by Spud::Admin::InquiriesController#destroy as HTML
|
158
|
+
Parameters: {"id"=>"23532"}
|
159
|
+
[1m[36mSpudUser Load (0.2ms)[0m [1mSELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1[0m
|
160
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSpudInquiry Load (0.2ms)[0m [1mSELECT `spud_inquiries`.* FROM `spud_inquiries` WHERE `spud_inquiries`.`id` = 23532 ORDER BY `spud_inquiries`.`id` ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiries`
|
166
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
167
|
+
[1m[35m (0.1ms)[0m BEGIN
|
168
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
169
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
170
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8a02fe8e7bb9e2a442c5c1fd23b8ccdb692ba9e0f12a2050ec6f975e989a864d3cb6e5d322ca7754f35aa0daea68217023942b8a071b616274b9b0bc7472e1da' LIMIT 1[0m
|
171
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'e0L14Q8vLHx7RLJCNka' LIMIT 1
|
172
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
173
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 6' LIMIT 1[0m
|
175
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-6' LIMIT 1
|
176
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
177
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 7' LIMIT 1
|
178
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-7' LIMIT 1[0m
|
179
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudUser Load (0.3ms)[0m [1mSELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1[0m
|
182
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `spud_inquiry_forms`[0m
|
185
|
+
[1m[35m (5.0ms)[0m ROLLBACK
|
186
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
187
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
|
188
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1[0m
|
189
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '548613b17688d05eb46911c95a15ce8ae71a77b7540845438bc3077cc945977b795078e8d6497098dcdccb4a3c0f818c9b8f505b9f07f8885932333ed673e683' LIMIT 1
|
190
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'zWDCxeol5lm0Tw3CqxjN' LIMIT 1[0m
|
191
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
193
|
+
Processing by Spud::Admin::InquiryFormsController#new as HTML
|
194
|
+
[1m[35mSpudUser Load (0.3ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1
|
195
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
196
|
+
Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.5ms)
|
197
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
198
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
199
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
|
200
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1[0m
|
201
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b81abe4c72cdd9492c4be00007a90cb888e1b739a057d67ed467484808a0b31b5b2a19b57e319f7bd7af8ca693213dd2cb3255deac27a236373bf07247b415dc' LIMIT 1
|
202
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'GvjTRJa0Fc2SwsOq6yHC' LIMIT 1[0m
|
203
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
205
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiry_forms`
|
206
|
+
Processing by Spud::Admin::InquiryFormsController#create as HTML
|
207
|
+
Parameters: {"spud_inquiry_form"=>{"name"=>"Form 8"}}
|
208
|
+
[1m[36mSpudUser Load (0.3ms)[0m [1mSELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1[0m
|
209
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 8' LIMIT 1[0m
|
211
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-8' LIMIT 1
|
212
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
213
|
+
Redirected to http://test.host/spud/admin/inquiry_forms
|
214
|
+
Completed 302 Found in 12ms (ActiveRecord: 1.2ms)
|
215
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiry_forms`
|
216
|
+
[1m[36m (11.6ms)[0m [1mROLLBACK[0m
|
217
|
+
[1m[35m (0.1ms)[0m BEGIN
|
218
|
+
[1m[36mSpud::SpudUserModel Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
219
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
220
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'cabb1717ebc0028fbc12842d1c31da9e35cbae418cdd90616802373873c7e9025faaf31726cc2274353fcbe581cbc668531a30b889c17e9fa2297318229e0e88' LIMIT 1[0m
|
221
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'VHckZTlgrwYaLobufeRg' LIMIT 1
|
222
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
223
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `spud_inquiry_forms`[0m
|
225
|
+
Processing by Spud::Admin::InquiryFormsController#create as HTML
|
226
|
+
Parameters: {"spud_inquiry_form"=>{"name"=>nil}}
|
227
|
+
[1m[35mSpudUser Load (0.2ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1
|
228
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `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[0m
|
229
|
+
[1m[35mSpudInquiryForm Exists (0.3ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` IS NULL LIMIT 1
|
230
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` IS NULL LIMIT 1[0m
|
231
|
+
Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.9ms)
|
232
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiry_forms`
|
233
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
234
|
+
[1m[35m (0.1ms)[0m BEGIN
|
235
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
236
|
+
[1m[35mSpud::SpudUserModel Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
237
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1708aa852f67488d0751f0931dde0c7754430e7e97a556349f95e94bae9cab9aab174aed14cc1e236a945e7dc511b5fee58700edbc378cf4acb31fd4b8d38b5d' LIMIT 1[0m
|
238
|
+
[1m[35mSpud::SpudUserModel Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'upQd7F4U7qLtHN4VbAD4' LIMIT 1
|
239
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
240
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 9' LIMIT 1[0m
|
242
|
+
[1m[35mSpudInquiryForm Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-9' LIMIT 1
|
243
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
244
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 10' LIMIT 1
|
245
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-10' LIMIT 1[0m
|
246
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudUser Load (0.3ms)[0m [1mSELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1[0m
|
250
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Load (0.2ms)[0m [1mSELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 10 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1[0m
|
252
|
+
Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.7ms)
|
253
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
254
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
255
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
|
256
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1[0m
|
257
|
+
[1m[35mSpud::SpudUserModel Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '319401cb636f2bc2fc997301fc9858115445e5ebf6e60b0056b63b94450a7c21724aa35a09ee8f0e755f9b3c6e526d07464b799def3c0cab322a85818557bec2' LIMIT 1
|
258
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'rlQ9iufiqQFE1Etkiq5' LIMIT 1[0m
|
259
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
261
|
+
Processing by Spud::Admin::InquiryFormsController#edit as HTML
|
262
|
+
Parameters: {"id"=>"1234"}
|
263
|
+
[1m[35mSpudUser Load (0.2ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 11 LIMIT 1
|
264
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
265
|
+
[1m[35mSpudInquiryForm Load (0.2ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
270
|
+
[1m[35m (0.1ms)[0m BEGIN
|
271
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
272
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
273
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2222fd48a0079b24a32c257f595cea049bc9abcc8865ed99ce9fbaa352915aa8d9c6b03418ef553386ba7280c037f8bb37fdb75bb7637d0761d8e5a59022b2b2' LIMIT 1[0m
|
274
|
+
[1m[35mSpud::SpudUserModel Exists (0.1ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '62JP9tuvxB0YaxprxhT' LIMIT 1
|
275
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
276
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 11' LIMIT 1[0m
|
278
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-11' LIMIT 1
|
279
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
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
|
+
[1m[35mSpudUser Load (0.3ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 12 LIMIT 1
|
283
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `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[0m
|
284
|
+
[1m[35mSpudInquiryForm Load (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE (`spud_inquiry_forms`.`name` = BINARY 'MyForm' AND `spud_inquiry_forms`.`id` != 11) LIMIT 1[0m
|
287
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `spud_inquiry_forms` SET `name` = 'MyForm', `url_name` = 'myform', `updated_at` = '2014-02-12 21:43:40' WHERE `spud_inquiry_forms`.`id` = 11[0m
|
289
|
+
[1m[35mSpudLiquidTag Load (0.3ms)[0m 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
|
+
[1m[36mSpudInquiryForm Load (0.3ms)[0m [1mSELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 11 LIMIT 1[0m
|
293
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
294
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
295
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
|
296
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1[0m
|
297
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '653ea5f90fd4f54bf0837e1c9f820791fbf8ab03e0f09b24be498ebe80621652a6084862bd59b6c8ecd7a2f15bd0b77be89496c2b4ad2a34e1c0aa1a4328cbc5' LIMIT 1
|
298
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Nv1wtEb7ahcS7tyJqxj' LIMIT 1[0m
|
299
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
301
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 12' LIMIT 1
|
302
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-12' LIMIT 1[0m
|
303
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudUser Load (0.2ms)[0m [1mSELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 13 LIMIT 1[0m
|
307
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Load (0.2ms)[0m [1mSELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 12 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1[0m
|
309
|
+
Unpermitted parameters: created_at, updated_at
|
310
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE (`spud_inquiry_forms`.`name` = BINARY 'MyForm' AND `spud_inquiry_forms`.`id` != 12) LIMIT 1
|
311
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE (`spud_inquiry_forms`.`url_name` = BINARY 'myform' AND `spud_inquiry_forms`.`id` != 12) LIMIT 1[0m
|
312
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudLiquidTag Load (0.2ms)[0m [1mSELECT `spud_liquid_tags`.* FROM `spud_liquid_tags` WHERE `spud_liquid_tags`.`tag_name` = 'inquiry' AND `spud_liquid_tags`.`value` IN ('MyForm', 'Form 12')[0m
|
314
|
+
Redirected to http://test.host/spud/admin/inquiry_forms
|
315
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.4ms)
|
316
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
317
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
318
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1
|
319
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1[0m
|
320
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ba54bd945e49aaacd2fa7cf30aa259779fefe05401efd9dd9ebb0a9d2633f2d2fa68660b047cdd838587225f0d46376a1ac0e64642f5e5af083d0ad83cadefce' LIMIT 1
|
321
|
+
[1m[36mSpud::SpudUserModel Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'quOfgHJ862PeUxvjm9ai' LIMIT 1[0m
|
322
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `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[0m
|
324
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 13' LIMIT 1
|
325
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-13' LIMIT 1[0m
|
326
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `spud_inquiry_forms`[0m
|
328
|
+
Processing by Spud::Admin::InquiryFormsController#destroy as HTML
|
329
|
+
Parameters: {"id"=>"13"}
|
330
|
+
[1m[35mSpudUser Load (0.2ms)[0m SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 14 LIMIT 1
|
331
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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[0m
|
332
|
+
[1m[35mSpudInquiryForm Load (0.2ms)[0m SELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 13 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1
|
333
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `spud_inquiries` SET `spud_inquiries`.`spud_inquiry_form_id` = NULL WHERE `spud_inquiries`.`spud_inquiry_form_id` = 13[0m
|
334
|
+
[1m[35mSpudInquiryFormField Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 13[0m
|
336
|
+
Redirected to http://test.host/spud/admin/inquiry_forms
|
337
|
+
Completed 302 Found in 12ms (ActiveRecord: 1.2ms)
|
338
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiry_forms`
|
339
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
340
|
+
[1m[35m (0.1ms)[0m BEGIN
|
341
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1[0m
|
342
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1
|
343
|
+
[1m[36mSpud::SpudUserModel Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fb67f064edc548e3abde2092843181b2d330c69e9cb199b2287a41e62d11a6e8ff3a4f5785eceb9b20b5081246ca160f4c1f0c49c3af0c3c345b64591a0bdc31' LIMIT 1[0m
|
344
|
+
[1m[35mSpud::SpudUserModel Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'tWZiZK0HZhO6aASvNZOP' LIMIT 1
|
345
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
346
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 14' LIMIT 1[0m
|
348
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-14' LIMIT 1
|
349
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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')[0m
|
350
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `spud_inquiry_forms`
|
351
|
+
Processing by Spud::Admin::InquiryFormsController#destroy as HTML
|
352
|
+
Parameters: {"id"=>"23532"}
|
353
|
+
[1m[36mSpudUser Load (0.2ms)[0m [1mSELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 15 LIMIT 1[0m
|
354
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Load (0.1ms)[0m [1mSELECT `spud_inquiry_forms`.* FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`id` = 23532 ORDER BY `spud_inquiry_forms`.`id` ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM `spud_inquiry_forms`
|
360
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
361
|
+
[1m[35m (0.1ms)[0m BEGIN
|
362
|
+
Processing by Spud::Inquiries::SitemapsController#show as XML
|
363
|
+
Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.0ms)
|
364
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
365
|
+
[1m[35m (0.1ms)[0m BEGIN
|
366
|
+
Processing by Spud::Inquiries::SitemapsController#show as HTML
|
367
|
+
Completed 406 Not Acceptable in 1ms
|
368
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
369
|
+
[1m[35m (0.1ms)[0m BEGIN
|
370
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
371
|
+
[1m[35m (0.1ms)[0m BEGIN
|
372
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:40', '2014-02-12 21:43:40')[0m
|
373
|
+
[1m[35m (6.0ms)[0m ROLLBACK
|
374
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
375
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
376
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
377
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 15' LIMIT 1
|
378
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-15' LIMIT 1[0m
|
379
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
381
|
+
[1m[35m (0.2ms)[0m BEGIN
|
382
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 16' LIMIT 1[0m
|
383
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-16' LIMIT 1
|
384
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
385
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
386
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
387
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 17' LIMIT 1
|
388
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-17' LIMIT 1[0m
|
389
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
391
|
+
[1m[35m (0.1ms)[0m BEGIN
|
392
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Form 18' LIMIT 1[0m
|
393
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'form-18' LIMIT 1
|
394
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
395
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
396
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
397
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
398
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
399
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
400
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
401
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` IS NULL LIMIT 1
|
402
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` IS NULL LIMIT 1[0m
|
403
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
404
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
405
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Test' LIMIT 1
|
406
|
+
[1m[36mSpudInquiryForm Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'test' LIMIT 1[0m
|
407
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSpudInquiryForm Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Test' LIMIT 1[0m
|
409
|
+
[1m[35mSpudInquiryForm Exists (0.2ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'test' LIMIT 1
|
410
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
411
|
+
[1m[35m (0.1ms)[0m BEGIN
|
412
|
+
[1m[36mSpudInquiryForm Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`name` = BINARY 'Contact Us' LIMIT 1[0m
|
413
|
+
[1m[35mSpudInquiryForm Exists (0.3ms)[0m SELECT 1 AS one FROM `spud_inquiry_forms` WHERE `spud_inquiry_forms`.`url_name` = BINARY 'contact-us' LIMIT 1
|
414
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
415
|
+
[1m[35m (0.1ms)[0m BEGIN
|
416
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
417
|
+
[1m[35m (0.1ms)[0m BEGIN
|
418
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
419
|
+
[1m[35m (0.1ms)[0m BEGIN
|
420
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:40', '2014-02-12 21:43:40')[0m
|
421
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
423
|
+
[1m[35m (0.1ms)[0m BEGIN
|
424
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `spud_inquiries` (`created_at`, `updated_at`) VALUES ('2014-02-12 21:43:40', '2014-02-12 21:43:40')[0m
|
425
|
+
[1m[35m (0.3ms)[0m 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
|