landing_page 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/app/controllers/landing_page/users_controller.rb +3 -1
  3. data/app/models/landing_page/user.rb +6 -0
  4. data/app/views/landing_page/users/create.html.slim +1 -1
  5. data/lib/landing_page/version.rb +1 -1
  6. data/spec/controllers/landing_page/users_controller_spec.rb +39 -0
  7. data/spec/dummy/README.rdoc +261 -0
  8. data/spec/dummy/Rakefile +7 -0
  9. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  10. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  11. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  12. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  13. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  14. data/spec/dummy/config.ru +4 -0
  15. data/spec/dummy/config/application.rb +65 -0
  16. data/spec/dummy/config/boot.rb +10 -0
  17. data/spec/dummy/config/database.yml +25 -0
  18. data/spec/dummy/config/environment.rb +5 -0
  19. data/spec/dummy/config/environments/development.rb +37 -0
  20. data/spec/dummy/config/environments/production.rb +67 -0
  21. data/spec/dummy/config/environments/test.rb +37 -0
  22. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  23. data/spec/dummy/config/initializers/inflections.rb +15 -0
  24. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  25. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  26. data/spec/dummy/config/initializers/session_store.rb +8 -0
  27. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  28. data/spec/dummy/config/locales/en.yml +5 -0
  29. data/spec/dummy/config/routes.rb +4 -0
  30. data/spec/dummy/db/schema.rb +26 -0
  31. data/spec/dummy/db/test.sqlite3 +0 -0
  32. data/spec/dummy/log/test.log +438 -0
  33. data/spec/dummy/public/404.html +26 -0
  34. data/spec/dummy/public/422.html +26 -0
  35. data/spec/dummy/public/500.html +25 -0
  36. data/spec/dummy/public/favicon.ico +0 -0
  37. data/spec/dummy/script/rails +6 -0
  38. data/spec/features/user_leave_email_spec.rb +27 -0
  39. data/spec/features/user_share_page_spec.rb +14 -0
  40. data/spec/models/landing_page/user_spec.rb +45 -0
  41. data/spec/spec_helper.rb +49 -0
  42. data/spec/support/factories.rb +5 -0
  43. data/spec/support/helper.rb +8 -0
  44. metadata +95 -37
  45. data/README.rdoc +0 -5
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Raise exception on mass assignment protection for Active Record models
26
+ config.active_record.mass_assignment_sanitizer = :strict
27
+
28
+ # Log the query plan for queries taking more than this (works
29
+ # with SQLite, MySQL, and PostgreSQL)
30
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
31
+
32
+ # Do not compress assets
33
+ config.assets.compress = false
34
+
35
+ # Expands the lines which load the assets
36
+ config.assets.debug = true
37
+ end
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '132d6a6e0b66f44c80ff8ff1e4abb46b1b42ce0f70eb20beb1fac63c6c39d21ce43d91bd3e6edda36a49e3341e51f93f7d9996ee261332df8a995b97de2f135f'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount LandingPage::Engine => "/landing_page"
4
+ end
@@ -0,0 +1,26 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130730071415) do
15
+
16
+ create_table "landing_page_users", :force => true do |t|
17
+ t.string "email"
18
+ t.datetime "created_at", :null => false
19
+ t.datetime "updated_at", :null => false
20
+ t.string "name"
21
+ t.string "locale"
22
+ end
23
+
24
+ add_index "landing_page_users", ["email"], :name => "index_landing_page_users_on_email", :unique => true
25
+
26
+ end
Binary file
@@ -0,0 +1,438 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (0.7ms) begin transaction
4
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:45:47 +0200
5
+ Processing by LandingPage::UsersController#new as HTML
6
+ Completed 500 Internal Server Error in 70ms
7
+  (0.2ms) rollback transaction
8
+  (0.1ms) begin transaction
9
+ Processing by LandingPage::UsersController#new as HTML
10
+ Completed 500 Internal Server Error in 1ms
11
+  (0.2ms) rollback transaction
12
+  (0.2ms) begin transaction
13
+ Processing by LandingPage::UsersController#create as HTML
14
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
15
+ Completed 500 Internal Server Error in 1ms
16
+  (0.1ms) rollback transaction
17
+  (0.1ms) begin transaction
18
+ Processing by LandingPage::UsersController#create as HTML
19
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
20
+ Completed 500 Internal Server Error in 1ms
21
+  (0.2ms) rollback transaction
22
+  (0.1ms) begin transaction
23
+ Processing by LandingPage::UsersController#create as HTML
24
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
25
+ Completed 500 Internal Server Error in 1ms
26
+  (0.2ms) rollback transaction
27
+  (0.1ms) begin transaction
28
+ Processing by LandingPage::UsersController#create as HTML
29
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
30
+ Completed 500 Internal Server Error in 1ms
31
+  (0.2ms) rollback transaction
32
+  (0.1ms) begin transaction
33
+ Processing by LandingPage::UsersController#create as HTML
34
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
35
+ Completed 500 Internal Server Error in 1ms
36
+  (0.2ms) rollback transaction
37
+  (0.1ms) begin transaction
38
+  (0.1ms) rollback transaction
39
+  (0.1ms) begin transaction
40
+  (0.1ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+  (0.1ms) rollback transaction
43
+  (0.1ms) begin transaction
44
+  (0.1ms) rollback transaction
45
+  (0.1ms) begin transaction
46
+  (0.1ms) rollback transaction
47
+  (0.1ms) begin transaction
48
+  (0.1ms) rollback transaction
49
+  (0.1ms) begin transaction
50
+  (0.1ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+  (0.1ms) rollback transaction
53
+  (0.1ms) begin transaction
54
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:45:47 +0200
55
+ Processing by LandingPage::UsersController#new as HTML
56
+ Completed 500 Internal Server Error in 1ms
57
+  (0.1ms) rollback transaction
58
+  (0.1ms) begin transaction
59
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:45:47 +0200
60
+ Processing by LandingPage::UsersController#new as HTML
61
+ Completed 500 Internal Server Error in 1ms
62
+  (0.1ms) rollback transaction
63
+  (0.1ms) begin transaction
64
+  (0.1ms) rollback transaction
65
+ Connecting to database specified by database.yml
66
+  (0.2ms) select sqlite_version(*)
67
+  (423.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
68
+  (189.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
69
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
70
+ Migrating to CreateLandingPageUsers (20130727104115)
71
+  (0.2ms) begin transaction
72
+  (1.5ms) CREATE TABLE "landing_page_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
73
+  (1.0ms) CREATE UNIQUE INDEX "index_landing_page_users_on_email" ON "landing_page_users" ("email")
74
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130727104115')
75
+  (167.1ms) commit transaction
76
+ Migrating to AddNameToLandingPageUsers (20130727152153)
77
+  (0.2ms) begin transaction
78
+  (1.3ms) ALTER TABLE "landing_page_users" ADD "name" varchar(255)
79
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130727152153')
80
+  (147.4ms) commit transaction
81
+ Migrating to AddLocaleToLandingPageUsers (20130730071415)
82
+  (0.1ms) begin transaction
83
+  (0.7ms) ALTER TABLE "landing_page_users" ADD "locale" varchar(255)
84
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130730071415')
85
+  (218.8ms) commit transaction
86
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
87
+ Connecting to database specified by database.yml
88
+  (0.8ms) begin transaction
89
+ Processing by LandingPage::UsersController#new as HTML
90
+ Rendered /home/marc/webs/projects/landing_page/app/views/landing_page/users/new.html.slim within layouts/application (0.6ms)
91
+ Completed 200 OK in 108ms (Views: 13.9ms | ActiveRecord: 2.0ms)
92
+  (0.2ms) rollback transaction
93
+  (0.2ms) begin transaction
94
+ Processing by LandingPage::UsersController#create as HTML
95
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
96
+ Completed 500 Internal Server Error in 1ms
97
+  (0.2ms) rollback transaction
98
+  (0.1ms) begin transaction
99
+ Processing by LandingPage::UsersController#create as HTML
100
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
101
+ Completed 500 Internal Server Error in 1ms
102
+  (0.2ms) rollback transaction
103
+  (0.1ms) begin transaction
104
+ Processing by LandingPage::UsersController#create as HTML
105
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
106
+ Completed 500 Internal Server Error in 1ms
107
+  (0.1ms) rollback transaction
108
+  (0.1ms) begin transaction
109
+ Processing by LandingPage::UsersController#create as HTML
110
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
111
+ Completed 500 Internal Server Error in 1ms
112
+  (0.1ms) rollback transaction
113
+  (0.1ms) begin transaction
114
+ Processing by LandingPage::UsersController#create as HTML
115
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
116
+ Completed 500 Internal Server Error in 1ms
117
+  (0.1ms) rollback transaction
118
+  (0.1ms) begin transaction
119
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
120
+ Processing by LandingPage::UsersController#new as HTML
121
+ Completed 200 OK in 95ms (Views: 94.0ms | ActiveRecord: 0.0ms)
122
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
123
+ Processing by LandingPage::UsersController#create as HTML
124
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
125
+ Completed 500 Internal Server Error in 1ms
126
+  (0.2ms) rollback transaction
127
+  (0.2ms) begin transaction
128
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
129
+ Processing by LandingPage::UsersController#new as HTML
130
+ Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)
131
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
132
+ Processing by LandingPage::UsersController#create as HTML
133
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"not_valid_email"}, "commit"=>"Subscribe"}
134
+ Completed 500 Internal Server Error in 1ms
135
+  (0.2ms) rollback transaction
136
+  (0.2ms) begin transaction
137
+  (0.2ms) SAVEPOINT active_record_1
138
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
139
+ SQL (2.4ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00]]
140
+  (0.2ms) RELEASE SAVEPOINT active_record_1
141
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
142
+ Processing by LandingPage::UsersController#new as HTML
143
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
144
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
145
+ Processing by LandingPage::UsersController#create as HTML
146
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
147
+ Completed 500 Internal Server Error in 1ms
148
+  (0.3ms) rollback transaction
149
+  (0.1ms) begin transaction
150
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
151
+ Processing by LandingPage::UsersController#new as HTML
152
+ Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)
153
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:46:56 +0200
154
+ Processing by LandingPage::UsersController#create as HTML
155
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
156
+ Completed 500 Internal Server Error in 2ms
157
+  (0.2ms) rollback transaction
158
+  (0.3ms) begin transaction
159
+  (0.2ms) rollback transaction
160
+  (0.1ms) begin transaction
161
+  (0.1ms) rollback transaction
162
+  (0.1ms) begin transaction
163
+  (0.1ms) rollback transaction
164
+  (0.2ms) begin transaction
165
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" IS NULL LIMIT 1
166
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" IS NULL LIMIT 1
167
+  (0.1ms) rollback transaction
168
+  (0.2ms) begin transaction
169
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@mail.com' LIMIT 1
170
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
171
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
172
+  (0.1ms) rollback transaction
173
+  (0.2ms) begin transaction
174
+ LandingPage::User Load (0.4ms) SELECT "landing_page_users".* FROM "landing_page_users" LIMIT 1
175
+  (0.1ms) SAVEPOINT active_record_1
176
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00], ["email", "arbitrary_string"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00]]
177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'arbitrary_string' LIMIT 1
179
+ LandingPage::User Exists (0.4ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'arbitrary_string' LIMIT 1
180
+  (0.3ms) rollback transaction
181
+  (0.2ms) begin transaction
182
+  (0.1ms) SAVEPOINT active_record_1
183
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
184
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00]]
185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
186
+  (0.3ms) rollback transaction
187
+  (0.1ms) begin transaction
188
+  (0.2ms) SAVEPOINT active_record_1
189
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
190
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", "dummy name"], ["updated_at", Sun, 15 Sep 2013 11:46:56 UTC +00:00]]
191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
192
+  (0.3ms) rollback transaction
193
+ Connecting to database specified by database.yml
194
+  (0.7ms) begin transaction
195
+  (0.2ms) rollback transaction
196
+  (0.1ms) begin transaction
197
+  (0.1ms) rollback transaction
198
+  (0.1ms) begin transaction
199
+  (0.1ms) rollback transaction
200
+  (0.2ms) begin transaction
201
+  (0.1ms) SAVEPOINT active_record_1
202
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
203
+ SQL (2.3ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", "dummy name"], ["updated_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00]]
204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
205
+  (0.3ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+ LandingPage::User Load (0.3ms) SELECT "landing_page_users".* FROM "landing_page_users" LIMIT 1
208
+  (0.1ms) SAVEPOINT active_record_1
209
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00], ["email", "arbitrary_string"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00]]
210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
211
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'arbitrary_string' LIMIT 1
212
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'arbitrary_string' LIMIT 1
213
+  (0.3ms) rollback transaction
214
+  (0.1ms) begin transaction
215
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" IS NULL LIMIT 1
216
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" IS NULL LIMIT 1
217
+  (0.1ms) rollback transaction
218
+  (0.1ms) begin transaction
219
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@mail.com' LIMIT 1
220
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
221
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
222
+  (0.1ms) rollback transaction
223
+  (0.1ms) begin transaction
224
+  (0.1ms) SAVEPOINT active_record_1
225
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
226
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00]]
227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
228
+  (0.3ms) rollback transaction
229
+  (0.1ms) begin transaction
230
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
231
+ Processing by LandingPage::UsersController#new as HTML
232
+ Rendered /home/marc/webs/projects/landing_page/app/views/landing_page/users/new.html.slim within layouts/application (37.5ms)
233
+ Completed 200 OK in 55ms (Views: 54.2ms | ActiveRecord: 0.0ms)
234
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
235
+ Processing by LandingPage::UsersController#create as HTML
236
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
237
+ Completed 500 Internal Server Error in 2ms
238
+  (0.1ms) rollback transaction
239
+  (0.1ms) begin transaction
240
+ Processing by LandingPage::UsersController#create as HTML
241
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
242
+ Completed 500 Internal Server Error in 1ms
243
+  (0.2ms) rollback transaction
244
+  (0.2ms) begin transaction
245
+ Processing by LandingPage::UsersController#create as HTML
246
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
247
+ Completed 500 Internal Server Error in 1ms
248
+  (0.1ms) rollback transaction
249
+  (0.1ms) begin transaction
250
+ Processing by LandingPage::UsersController#create as HTML
251
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
252
+ Completed 500 Internal Server Error in 1ms
253
+  (0.1ms) rollback transaction
254
+  (0.1ms) begin transaction
255
+ Processing by LandingPage::UsersController#create as HTML
256
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
257
+ Completed 500 Internal Server Error in 1ms
258
+  (0.2ms) rollback transaction
259
+  (0.1ms) begin transaction
260
+ Processing by LandingPage::UsersController#create as HTML
261
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
262
+ Completed 500 Internal Server Error in 1ms
263
+  (0.1ms) rollback transaction
264
+  (0.1ms) begin transaction
265
+ Processing by LandingPage::UsersController#new as HTML
266
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
267
+  (0.1ms) rollback transaction
268
+  (0.1ms) begin transaction
269
+  (0.1ms) SAVEPOINT active_record_1
270
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
271
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:47:38 UTC +00:00]]
272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
273
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
274
+ Processing by LandingPage::UsersController#new as HTML
275
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
276
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
277
+ Processing by LandingPage::UsersController#create as HTML
278
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
279
+ Completed 500 Internal Server Error in 1ms
280
+  (0.3ms) rollback transaction
281
+  (0.1ms) begin transaction
282
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
283
+ Processing by LandingPage::UsersController#new as HTML
284
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
285
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
286
+ Processing by LandingPage::UsersController#create as HTML
287
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
288
+ Completed 500 Internal Server Error in 1ms
289
+  (0.1ms) rollback transaction
290
+  (0.1ms) begin transaction
291
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
292
+ Processing by LandingPage::UsersController#new as HTML
293
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
294
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:47:38 +0200
295
+ Processing by LandingPage::UsersController#create as HTML
296
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"not_valid_email"}, "commit"=>"Subscribe"}
297
+ Completed 500 Internal Server Error in 1ms
298
+  (0.1ms) rollback transaction
299
+ Connecting to database specified by database.yml
300
+  (0.8ms) begin transaction
301
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
302
+ Processing by LandingPage::UsersController#new as HTML
303
+ Rendered /home/marc/webs/projects/landing_page/app/views/landing_page/users/new.html.slim within layouts/application (44.8ms)
304
+ Completed 200 OK in 146ms (Views: 61.2ms | ActiveRecord: 4.7ms)
305
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
306
+ Processing by LandingPage::UsersController#create as HTML
307
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
308
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
309
+  (0.1ms) SAVEPOINT active_record_1
310
+ CACHE (0.0ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
311
+ SQL (2.2ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", "Name"], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
313
+ Rendered /home/marc/webs/projects/landing_page/app/views/landing_page/users/_share_items.html.slim (74.2ms)
314
+ Rendered /home/marc/webs/projects/landing_page/app/views/landing_page/users/create.html.slim within layouts/application (100.7ms)
315
+ Completed 200 OK in 143ms (Views: 105.4ms | ActiveRecord: 2.8ms)
316
+  (0.4ms) rollback transaction
317
+  (0.1ms) begin transaction
318
+ Processing by LandingPage::UsersController#new as HTML
319
+ Rendered /home/marc/webs/projects/landing_page/app/views/landing_page/users/new.html.slim within layouts/application (0.7ms)
320
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
321
+  (0.1ms) rollback transaction
322
+  (0.1ms) begin transaction
323
+ Processing by LandingPage::UsersController#create as HTML
324
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
325
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'valid@email.com' LIMIT 1
326
+  (0.1ms) SAVEPOINT active_record_1
327
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'valid@email.com' LIMIT 1
328
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "valid@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
330
+ Completed 200 OK in 12ms (Views: 2.4ms | ActiveRecord: 1.5ms)
331
+  (0.2ms) SELECT COUNT(*) FROM "landing_page_users"
332
+  (0.3ms) rollback transaction
333
+  (0.1ms) begin transaction
334
+ Processing by LandingPage::UsersController#create as HTML
335
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
336
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'valid@email.com' LIMIT 1
337
+  (0.1ms) SAVEPOINT active_record_1
338
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'valid@email.com' LIMIT 1
339
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "valid@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341
+ Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 1.4ms)
342
+  (0.4ms) rollback transaction
343
+  (0.1ms) begin transaction
344
+ Processing by LandingPage::UsersController#create as HTML
345
+ Parameters: {"user"=>{"email"=>"valid@email.com"}}
346
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'valid@email.com' LIMIT 1
347
+  (0.1ms) SAVEPOINT active_record_1
348
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'valid@email.com' LIMIT 1
349
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "valid@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
351
+ Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 1.4ms)
352
+  (0.3ms) rollback transaction
353
+  (0.1ms) begin transaction
354
+ Processing by LandingPage::UsersController#create as HTML
355
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
356
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
357
+ Completed 200 OK in 9ms (Views: 2.2ms | ActiveRecord: 0.3ms)
358
+  (0.2ms) rollback transaction
359
+  (0.1ms) begin transaction
360
+ Processing by LandingPage::UsersController#create as HTML
361
+ Parameters: {"user"=>{"email"=>"invalid_email"}}
362
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
363
+ Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.3ms)
364
+  (0.2ms) rollback transaction
365
+  (0.1ms) begin transaction
366
+  (0.1ms) SAVEPOINT active_record_1
367
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
368
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
370
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
371
+ Processing by LandingPage::UsersController#new as HTML
372
+ Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
373
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
374
+ Processing by LandingPage::UsersController#create as HTML
375
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
376
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
377
+ Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.2ms)
378
+  (0.3ms) rollback transaction
379
+  (0.1ms) begin transaction
380
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
381
+ Processing by LandingPage::UsersController#new as HTML
382
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
383
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
384
+ Processing by LandingPage::UsersController#create as HTML
385
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"not_valid_email"}, "commit"=>"Subscribe"}
386
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'not_valid_email' LIMIT 1
387
+ Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.3ms)
388
+  (0.2ms) rollback transaction
389
+  (0.2ms) begin transaction
390
+ Started GET "/landing_page/" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
391
+ Processing by LandingPage::UsersController#new as HTML
392
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
393
+ Started POST "/landing_page/users" for 127.0.0.1 at 2013-09-15 13:48:10 +0200
394
+ Processing by LandingPage::UsersController#create as HTML
395
+ Parameters: {"utf8"=>"✓", "user"=>{"name"=>"Name", "email"=>"dummy@email.com"}, "commit"=>"Subscribe"}
396
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
397
+  (0.1ms) SAVEPOINT active_record_1
398
+ CACHE (0.0ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
399
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", "Name"], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
401
+ Rendered /home/marc/webs/projects/landing_page/app/views/landing_page/users/_share_items.html.slim (0.7ms)
402
+ Completed 200 OK in 13ms (Views: 4.1ms | ActiveRecord: 1.2ms)
403
+  (0.3ms) rollback transaction
404
+  (0.2ms) begin transaction
405
+  (0.1ms) rollback transaction
406
+  (0.1ms) begin transaction
407
+  (0.1ms) rollback transaction
408
+  (0.2ms) begin transaction
409
+  (0.1ms) rollback transaction
410
+  (0.1ms) begin transaction
411
+  (0.2ms) SAVEPOINT active_record_1
412
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
413
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", "dummy name"], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
415
+  (0.3ms) rollback transaction
416
+  (0.2ms) begin transaction
417
+  (0.1ms) SAVEPOINT active_record_1
418
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@email.com' LIMIT 1
419
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "dummy@email.com"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
421
+  (0.3ms) rollback transaction
422
+  (0.2ms) begin transaction
423
+ LandingPage::User Load (0.3ms) SELECT "landing_page_users".* FROM "landing_page_users" LIMIT 1
424
+  (0.1ms) SAVEPOINT active_record_1
425
+ SQL (0.7ms) INSERT INTO "landing_page_users" ("created_at", "email", "locale", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00], ["email", "arbitrary_string"], ["locale", "en"], ["name", nil], ["updated_at", Sun, 15 Sep 2013 11:48:10 UTC +00:00]]
426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
427
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'arbitrary_string' LIMIT 1
428
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'arbitrary_string' LIMIT 1
429
+  (0.3ms) rollback transaction
430
+  (0.1ms) begin transaction
431
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'dummy@mail.com' LIMIT 1
432
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
433
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" = 'invalid_email' LIMIT 1
434
+  (0.2ms) rollback transaction
435
+  (0.2ms) begin transaction
436
+ LandingPage::User Exists (0.3ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" IS NULL LIMIT 1
437
+ LandingPage::User Exists (0.2ms) SELECT 1 AS one FROM "landing_page_users" WHERE "landing_page_users"."email" IS NULL LIMIT 1
438
+  (0.1ms) rollback transaction