active_record-resource 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/lib/active_record/resource/callbacks.rb +43 -0
- data/lib/active_record/resource/version.rb +5 -0
- data/lib/active_record-resource.rb +15 -0
- data/lib/tasks/active_record-resource_tasks.rake +4 -0
- data/test/active_record-resource_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/account.rb +9 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160223204747_create_accounts.rb +9 -0
- data/test/dummy/db/schema.rb +22 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +27 -0
- data/test/dummy/log/test.log +335 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/models/account_test.rb +16 -0
- data/test/test_helper.rb +19 -0
- metadata +210 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: a669ac8770b4b5c130fc12ebdff79241c4f95149c1f1ace45dcee9db64ec7fb5174a2e19ed1c2790da8b49e8f7917aab777f2f47bf2bf3416963baa870fe03ae
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: a4a57095be5e893e3cee33f68b42c8619f21069808c3d799a61bd6bc301f94f990a6bc9ccfaa3ad0f11f8fe1d5227452682eadd566f26503a29d538ba26d34c1
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
Binary file
|
@@ -0,0 +1,22 @@
|
|
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 that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20160223204747) do
|
15
|
+
|
16
|
+
create_table "accounts", force: :cascade do |t|
|
17
|
+
t.string "number"
|
18
|
+
t.datetime "created_at", null: false
|
19
|
+
t.datetime "updated_at", null: false
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateAccounts (20160223204747)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
8
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160223204747"]]
|
9
|
+
[1m[35m (0.7ms)[0m commit transaction
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
15
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
16
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 21:21:54.474366"], ["updated_at", "2016-02-23 21:21:54.474366"]]
|
17
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
18
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
20
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
21
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
22
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
24
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
25
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,335 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
--------------------------------------
|
3
|
+
ActiveRecord::ResourceTest: test_truth
|
4
|
+
--------------------------------------
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
--------------------------------------
|
8
|
+
ActiveRecord::ResourceTest: test_truth
|
9
|
+
--------------------------------------
|
10
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
--------------------------------------
|
13
|
+
ActiveRecord::ResourceTest: test_truth
|
14
|
+
--------------------------------------
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
--------------------------------------
|
18
|
+
ActiveRecord::ResourceTest: test_truth
|
19
|
+
--------------------------------------
|
20
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
22
|
+
--------------------------------------
|
23
|
+
ActiveRecord::ResourceTest: test_truth
|
24
|
+
--------------------------------------
|
25
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
--------------------------------------
|
28
|
+
ActiveRecord::ResourceTest: test_truth
|
29
|
+
--------------------------------------
|
30
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32
|
+
--------------------------------------
|
33
|
+
ActiveRecord::ResourceTest: test_truth
|
34
|
+
--------------------------------------
|
35
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
36
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37
|
+
--------------------------------------
|
38
|
+
ActiveRecord::ResourceTest: test_truth
|
39
|
+
--------------------------------------
|
40
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
+
--------------------------------------
|
43
|
+
ActiveRecord::ResourceTest: test_truth
|
44
|
+
--------------------------------------
|
45
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
46
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
47
|
+
--------------------------------------
|
48
|
+
ActiveRecord::ResourceTest: test_truth
|
49
|
+
--------------------------------------
|
50
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52
|
+
--------------------------------------
|
53
|
+
ActiveRecord::ResourceTest: test_truth
|
54
|
+
--------------------------------------
|
55
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
--------------------------------------
|
58
|
+
ActiveRecord::ResourceTest: test_truth
|
59
|
+
--------------------------------------
|
60
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
--------------------------------------
|
63
|
+
ActiveRecord::ResourceTest: test_truth
|
64
|
+
--------------------------------------
|
65
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
67
|
+
--------------------------------------
|
68
|
+
ActiveRecord::ResourceTest: test_truth
|
69
|
+
--------------------------------------
|
70
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
72
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
73
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
74
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
75
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
76
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
|
77
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
78
|
+
[1m[35m (0.1ms)[0m begin transaction
|
79
|
+
--------------------------------------
|
80
|
+
ActiveRecord::ResourceTest: test_truth
|
81
|
+
--------------------------------------
|
82
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
83
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
84
|
+
[1m[35m (0.1ms)[0m begin transaction
|
85
|
+
--------------------------------------
|
86
|
+
ActiveRecord::ResourceTest: test_truth
|
87
|
+
--------------------------------------
|
88
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90
|
+
---------------------------
|
91
|
+
AccountTest: test_the_truth
|
92
|
+
---------------------------
|
93
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
94
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:49:45.462369"], ["updated_at", "2016-02-23 20:49:45.462369"]]
|
95
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
96
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
97
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
98
|
+
[1m[35m (0.1ms)[0m begin transaction
|
99
|
+
---------------------------
|
100
|
+
AccountTest: test_the_truth
|
101
|
+
---------------------------
|
102
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
103
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:50:08.049665"], ["updated_at", "2016-02-23 20:50:08.049665"]]
|
104
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
105
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
106
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107
|
+
--------------------------------------
|
108
|
+
ActiveRecord::ResourceTest: test_truth
|
109
|
+
--------------------------------------
|
110
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
112
|
+
[1m[35m (0.1ms)[0m begin transaction
|
113
|
+
--------------------------------------
|
114
|
+
ActiveRecord::ResourceTest: test_truth
|
115
|
+
--------------------------------------
|
116
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
117
|
+
[1m[35m (0.0ms)[0m begin transaction
|
118
|
+
---------------------------
|
119
|
+
AccountTest: test_the_truth
|
120
|
+
---------------------------
|
121
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
122
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:50:23.404405"], ["updated_at", "2016-02-23 20:50:23.404405"]]
|
123
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
124
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
125
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
126
|
+
[1m[35m (0.1ms)[0m begin transaction
|
127
|
+
---------------------------
|
128
|
+
AccountTest: test_the_truth
|
129
|
+
---------------------------
|
130
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
131
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:51:00.769057"], ["updated_at", "2016-02-23 20:51:00.769057"]]
|
132
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
133
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
135
|
+
--------------------------------------
|
136
|
+
ActiveRecord::ResourceTest: test_truth
|
137
|
+
--------------------------------------
|
138
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
140
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141
|
+
--------------------------------------
|
142
|
+
ActiveRecord::ResourceTest: test_truth
|
143
|
+
--------------------------------------
|
144
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
146
|
+
---------------------------
|
147
|
+
AccountTest: test_the_truth
|
148
|
+
---------------------------
|
149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
150
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:52:00.686238"], ["updated_at", "2016-02-23 20:52:00.686238"]]
|
151
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
152
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
153
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
155
|
+
--------------------------------------------------------------------
|
156
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
157
|
+
--------------------------------------------------------------------
|
158
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
159
|
+
[1m[35m (0.0ms)[0m begin transaction
|
160
|
+
--------------------------------------
|
161
|
+
ActiveRecord::ResourceTest: test_truth
|
162
|
+
--------------------------------------
|
163
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
164
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
166
|
+
--------------------------------------
|
167
|
+
ActiveRecord::ResourceTest: test_truth
|
168
|
+
--------------------------------------
|
169
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
171
|
+
--------------------------------------------------------------------
|
172
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
173
|
+
--------------------------------------------------------------------
|
174
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
175
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 19:03:49.466732"], ["updated_at", "2016-02-24 19:03:49.466732"]]
|
176
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
177
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
178
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
179
|
+
[1m[35m (0.1ms)[0m begin transaction
|
180
|
+
--------------------------------------------------------------------
|
181
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
182
|
+
--------------------------------------------------------------------
|
183
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
184
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
185
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
186
|
+
[1m[35m (0.0ms)[0m begin transaction
|
187
|
+
--------------------------------------
|
188
|
+
ActiveRecord::ResourceTest: test_truth
|
189
|
+
--------------------------------------
|
190
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
191
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
192
|
+
[1m[35m (0.1ms)[0m begin transaction
|
193
|
+
--------------------------------------
|
194
|
+
ActiveRecord::ResourceTest: test_truth
|
195
|
+
--------------------------------------
|
196
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
197
|
+
[1m[35m (0.0ms)[0m begin transaction
|
198
|
+
--------------------------------------------------------------------
|
199
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
200
|
+
--------------------------------------------------------------------
|
201
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
202
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
203
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
204
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
205
|
+
[1m[35m (0.1ms)[0m begin transaction
|
206
|
+
--------------------------------------------------------------------
|
207
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
208
|
+
--------------------------------------------------------------------
|
209
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
211
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
212
|
+
[1m[35m (0.0ms)[0m begin transaction
|
213
|
+
--------------------------------------
|
214
|
+
ActiveRecord::ResourceTest: test_truth
|
215
|
+
--------------------------------------
|
216
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
217
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
218
|
+
[1m[35m (0.1ms)[0m begin transaction
|
219
|
+
--------------------------------------------------------------------
|
220
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
221
|
+
--------------------------------------------------------------------
|
222
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
223
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
224
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
225
|
+
[1m[35m (0.0ms)[0m begin transaction
|
226
|
+
--------------------------------------
|
227
|
+
ActiveRecord::ResourceTest: test_truth
|
228
|
+
--------------------------------------
|
229
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
230
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
231
|
+
[1m[35m (0.1ms)[0m begin transaction
|
232
|
+
--------------------------------------------------------------------
|
233
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
234
|
+
--------------------------------------------------------------------
|
235
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
237
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
238
|
+
[1m[35m (0.0ms)[0m begin transaction
|
239
|
+
--------------------------------------
|
240
|
+
ActiveRecord::ResourceTest: test_truth
|
241
|
+
--------------------------------------
|
242
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
243
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
245
|
+
--------------------------------------
|
246
|
+
ActiveRecord::ResourceTest: test_truth
|
247
|
+
--------------------------------------
|
248
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
249
|
+
[1m[35m (0.0ms)[0m begin transaction
|
250
|
+
--------------------------------------------------------------------
|
251
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
252
|
+
--------------------------------------------------------------------
|
253
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
254
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
255
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
256
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
257
|
+
[1m[35m (0.1ms)[0m begin transaction
|
258
|
+
--------------------------------------------------------------------------------
|
259
|
+
AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
|
260
|
+
--------------------------------------------------------------------------------
|
261
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
262
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
263
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
264
|
+
[1m[35m (0.0ms)[0m begin transaction
|
265
|
+
--------------------------------------------------------------------
|
266
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
267
|
+
--------------------------------------------------------------------
|
268
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
269
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
270
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
271
|
+
[1m[35m (0.0ms)[0m begin transaction
|
272
|
+
--------------------------------------
|
273
|
+
ActiveRecord::ResourceTest: test_truth
|
274
|
+
--------------------------------------
|
275
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
276
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
277
|
+
[1m[35m (0.1ms)[0m begin transaction
|
278
|
+
--------------------------------------------------------------------------------
|
279
|
+
AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
|
280
|
+
--------------------------------------------------------------------------------
|
281
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
283
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
284
|
+
[1m[35m (0.0ms)[0m begin transaction
|
285
|
+
--------------------------------------------------------------------
|
286
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
287
|
+
--------------------------------------------------------------------
|
288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
289
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
290
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
291
|
+
[1m[35m (0.0ms)[0m begin transaction
|
292
|
+
--------------------------------------
|
293
|
+
ActiveRecord::ResourceTest: test_truth
|
294
|
+
--------------------------------------
|
295
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
296
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
297
|
+
[1m[35m (0.1ms)[0m begin transaction
|
298
|
+
--------------------------------------------------------------------
|
299
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
300
|
+
--------------------------------------------------------------------
|
301
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
302
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
303
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
304
|
+
[1m[35m (0.1ms)[0m begin transaction
|
305
|
+
--------------------------------------------------------------------------------
|
306
|
+
AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
|
307
|
+
--------------------------------------------------------------------------------
|
308
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
309
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
310
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
311
|
+
[1m[35m (0.0ms)[0m begin transaction
|
312
|
+
--------------------------------------
|
313
|
+
ActiveRecord::ResourceTest: test_truth
|
314
|
+
--------------------------------------
|
315
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
316
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
317
|
+
[1m[35m (0.1ms)[0m begin transaction
|
318
|
+
--------------------------------------
|
319
|
+
ActiveRecord::ResourceTest: test_truth
|
320
|
+
--------------------------------------
|
321
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
323
|
+
--------------------------------------------------------------------------------
|
324
|
+
AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
|
325
|
+
--------------------------------------------------------------------------------
|
326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
327
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
328
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
330
|
+
--------------------------------------------------------------------
|
331
|
+
AccountTest: test_it_calls_the_create_resource_callback_when_created
|
332
|
+
--------------------------------------------------------------------
|
333
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
334
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
335
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|