adeia 0.6.0 → 0.6.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 +4 -4
- data/lib/adeia/controller_methods.rb +1 -1
- data/lib/adeia/controller_resource.rb +2 -2
- data/lib/adeia/version.rb +1 -1
- data/spec/controllers/articles_controller_spec.rb +86 -52
- data/spec/test_app/app/controllers/articles_controller.rb +4 -0
- data/spec/test_app/log/test.log +373 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 338d4525e3d055c6f0c317d489e27ab93e9f8c15
|
4
|
+
data.tar.gz: 41a9b61951831ed849f22d3158c89768439c28d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70bd99393732dae7e0b9d416688618fbd76cb90fd96a8aae10c9830eb4c146cbf2cd2cfd25257ea135f1ed67928325b20653dda5bf2a1154c61d130923e3d61
|
7
|
+
data.tar.gz: 8207759e526fffbe4b95fdf219368a27f23d432169959a64c5a8902cdc8e2e9997f267189cad6425cdc13c776df29500325ee1473e419a76f3f76a7eb991b479
|
data/lib/adeia/version.rb
CHANGED
@@ -1,76 +1,77 @@
|
|
1
1
|
require "rails_helper"
|
2
2
|
|
3
3
|
describe ArticlesController, :type => :controller do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
describe "GET #index" do
|
10
|
-
|
11
|
-
describe "response" do
|
12
|
-
before(:each) { create(:permission, element_name: "articles", read_right: true, owner: @user) }
|
13
|
-
|
14
|
-
it "responds successfully" do
|
15
|
-
get :index
|
16
|
-
expect(response).to be_success
|
17
|
-
end
|
18
|
-
|
19
|
-
it "loads the records" do
|
20
|
-
get :index
|
21
|
-
expect(assigns(:articles)).not_to be_nil
|
22
|
-
end
|
23
|
-
|
4
|
+
context "with a logged in user" do
|
5
|
+
before(:each) do
|
6
|
+
@user = User.create!(name: "admin", password: "12341", password_confirmation: "12341")
|
7
|
+
sign_in @user
|
24
8
|
end
|
25
9
|
|
26
|
-
describe "
|
10
|
+
describe "GET #index" do
|
11
|
+
|
12
|
+
describe "response" do
|
13
|
+
before(:each) { create(:permission, element_name: "articles", read_right: true, owner: @user) }
|
27
14
|
|
28
|
-
|
15
|
+
it "responds successfully" do
|
16
|
+
get :index
|
17
|
+
expect(response).to be_success
|
18
|
+
end
|
29
19
|
|
30
|
-
it "loads
|
31
|
-
create(:permission, element_name: "articles", read_right: true, owner: @user)
|
32
|
-
create_list(:article, 5)
|
20
|
+
it "loads the records" do
|
33
21
|
get :index
|
34
|
-
expect(assigns(:articles)).
|
22
|
+
expect(assigns(:articles)).not_to be_nil
|
35
23
|
end
|
36
24
|
|
37
25
|
end
|
38
26
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
27
|
+
describe "records loading" do
|
28
|
+
|
29
|
+
context "with an 'all_entries' permission" do
|
30
|
+
|
31
|
+
it "loads all the entries" do
|
32
|
+
create(:permission, element_name: "articles", read_right: true, owner: @user)
|
33
|
+
create_list(:article, 5)
|
34
|
+
get :index
|
35
|
+
expect(assigns(:articles)).to eq Article.all
|
36
|
+
end
|
45
37
|
|
46
|
-
it "loads the owned articles" do
|
47
|
-
get :index
|
48
|
-
expect(assigns(:articles)).to eq @own_articles
|
49
38
|
end
|
50
39
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
40
|
+
context "with an 'on_ownerships' permission" do
|
41
|
+
before(:each) do
|
42
|
+
create(:permission, element_name: "articles", type_name: "on_ownerships", read_right: true, owner: @user)
|
43
|
+
@own_articles = create_list(:article, 5, user: @user)
|
44
|
+
create_list(:article, 5)
|
45
|
+
end
|
46
|
+
|
47
|
+
it "loads the owned articles" do
|
48
|
+
get :index
|
49
|
+
expect(assigns(:articles)).to eq @own_articles
|
50
|
+
end
|
51
|
+
|
52
|
+
it "loads the owned articles and also the specific ones" do
|
53
|
+
specific_article = create(:article)
|
54
|
+
create(:permission, element_name: "articles", type_name: "on_entry", resource_id: specific_article.id, read_right: true, owner: @user)
|
55
|
+
get :index
|
56
|
+
expect(assigns(:articles)).to match_array(@own_articles << specific_article)
|
57
|
+
end
|
58
|
+
|
56
59
|
end
|
57
60
|
|
58
|
-
|
61
|
+
context "with an 'on_entry' permission" do
|
59
62
|
|
60
|
-
|
63
|
+
it "loads the specific articles" do
|
64
|
+
first_article = create(:article)
|
65
|
+
second_article = create(:article)
|
66
|
+
create_list(:article, 5)
|
67
|
+
create(:permission, element_name: "articles", type_name: "on_entry", resource_id: first_article.id, read_right: true, owner: @user)
|
68
|
+
create(:permission, element_name: "articles", type_name: "on_entry", resource_id: second_article.id, read_right: true, owner: @user)
|
69
|
+
get :index
|
70
|
+
expect(assigns(:articles)).to match_array [first_article, second_article]
|
71
|
+
end
|
61
72
|
|
62
|
-
it "loads the specific articles" do
|
63
|
-
first_article = create(:article)
|
64
|
-
second_article = create(:article)
|
65
|
-
create_list(:article, 5)
|
66
|
-
create(:permission, element_name: "articles", type_name: "on_entry", resource_id: first_article.id, read_right: true, owner: @user)
|
67
|
-
create(:permission, element_name: "articles", type_name: "on_entry", resource_id: second_article.id, read_right: true, owner: @user)
|
68
|
-
get :index
|
69
|
-
expect(assigns(:articles)).to match_array [first_article, second_article]
|
70
73
|
end
|
71
|
-
|
72
74
|
end
|
73
|
-
|
74
75
|
end
|
75
76
|
|
76
77
|
describe "GET #show" do
|
@@ -119,5 +120,38 @@ describe ArticlesController, :type => :controller do
|
|
119
120
|
|
120
121
|
end
|
121
122
|
|
123
|
+
describe "POST #create" do
|
124
|
+
|
125
|
+
it "responds successfully" do
|
126
|
+
expect{ post :create, article: attributes_for(:article) }.not_to raise_error
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|
130
|
+
|
131
|
+
describe "PATCH #update" do
|
132
|
+
|
133
|
+
it "responds successfully" do
|
134
|
+
article = create(:article)
|
135
|
+
expect{ patch :update, id: article.id, article: attributes_for(:article) }.not_to raise_error
|
136
|
+
end
|
137
|
+
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
describe "POST #create" do
|
142
|
+
|
143
|
+
it "required to be logged in" do
|
144
|
+
expect { post :create, article: attributes_for(:article) }.to raise_error Adeia::LoginRequired
|
145
|
+
end
|
146
|
+
|
147
|
+
end
|
148
|
+
|
149
|
+
describe "PATCH #update" do
|
150
|
+
|
151
|
+
it "required to be logged in" do
|
152
|
+
article = create(:article)
|
153
|
+
expect { patch :update, id: article.id, article: attributes_for(:article) }.to raise_error Adeia::LoginRequired
|
154
|
+
end
|
155
|
+
|
122
156
|
end
|
123
157
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
class ArticlesController < ApplicationController
|
2
2
|
load_and_authorize only: [:edit]
|
3
|
+
require_login only: [:update]
|
3
4
|
|
4
5
|
def index
|
5
6
|
authorize_and_load_records!
|
@@ -18,6 +19,7 @@ class ArticlesController < ApplicationController
|
|
18
19
|
end
|
19
20
|
|
20
21
|
def create
|
22
|
+
require_login!
|
21
23
|
@article = Article.new(article_params)
|
22
24
|
@article.user = current_user
|
23
25
|
if @article.save
|
@@ -28,6 +30,7 @@ class ArticlesController < ApplicationController
|
|
28
30
|
end
|
29
31
|
|
30
32
|
def update
|
33
|
+
@article = Article.find(params[:id])
|
31
34
|
if @article.update(article_params)
|
32
35
|
redirect_to @article, notice: 'Article was successfully updated.'
|
33
36
|
else
|
@@ -36,6 +39,7 @@ class ArticlesController < ApplicationController
|
|
36
39
|
end
|
37
40
|
|
38
41
|
def destroy
|
42
|
+
@article = Article.find(params[:id])
|
39
43
|
@article.destroy
|
40
44
|
redirect_to articles_url, notice: 'Article was successfully destroyed.'
|
41
45
|
end
|
data/spec/test_app/log/test.log
CHANGED
@@ -59299,3 +59299,376 @@ Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.5ms)
|
|
59299
59299
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "adeia_groups" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "admin"], ["created_at", "2015-10-30 23:18:00.248088"], ["updated_at", "2015-10-30 23:18:00.248088"]]
|
59300
59300
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
59301
59301
|
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59304
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59305
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$HPc4XMj029rO3C.JgEZrD.yNQUMOnQ7EZCpBCPClmQ3pAVovruPmW"], ["remember_token", "nXJtI2ASTgvvbmpxUNeQgA"], ["created_at", "2015-10-31 15:02:19.190140"], ["updated_at", "2015-10-31 15:02:19.190140"]]
|
59306
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59307
|
+
Processing by ArticlesController#create as HTML
|
59308
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
|
59309
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
59310
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59311
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59312
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
59313
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$dz/GnobbNyaB/F3NG5p5tOg53iVvbKB.JhdBLQRd8ExXl5FuuiCI."], ["remember_token", "QwRQJDdYh6AjfWqmbpHvXA"], ["created_at", "2015-10-31 15:04:10.819682"], ["updated_at", "2015-10-31 15:04:10.819682"]]
|
59314
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59315
|
+
Processing by ArticlesController#create as HTML
|
59316
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "QwRQJDdYh6AjfWqmbpHvXA"]]
|
59317
|
+
Completed 400 Bad Request in 18ms (ActiveRecord: 0.2ms)
|
59318
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
59319
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59320
|
+
[1m[35m (0.2ms)[0m begin transaction
|
59321
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
59322
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$hwE7lTUTi5yUJYDxsQ.tKeytEDmQ/l2SQ03cZ.PqMZPNZGh4jPBPq"], ["remember_token", "NPR6bHqI3HoPFvgRUkPOQQ"], ["created_at", "2015-10-31 15:04:39.207243"], ["updated_at", "2015-10-31 15:04:39.207243"]]
|
59323
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59324
|
+
Processing by ArticlesController#create as HTML
|
59325
|
+
Parameters: {"article"=>{}}
|
59326
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "NPR6bHqI3HoPFvgRUkPOQQ"]]
|
59327
|
+
Completed 400 Bad Request in 19ms (ActiveRecord: 0.2ms)
|
59328
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
59329
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59330
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59331
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59332
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$dQDHjfRQdpgcXi1i/GyGkuB.x8LbMCQj9jkLixaeNAg6LcN/RJx1O"], ["remember_token", "uac3rzL4WzPmr5WSIyKJ7Q"], ["created_at", "2015-10-31 15:05:19.715984"], ["updated_at", "2015-10-31 15:05:19.715984"]]
|
59333
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59334
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59335
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59336
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$77rBQFhuuzfG.p0dNVy.2eURWxDMIZa4v31gaUrVS9Yg1OFCwxydG"], ["remember_token", "K6Jq6hUfe4upvd9tXkZSuQ"], ["created_at", "2015-10-31 15:05:19.747091"], ["updated_at", "2015-10-31 15:05:19.747091"]]
|
59337
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59338
|
+
Processing by ArticlesController#create as HTML
|
59339
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
|
59340
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "uac3rzL4WzPmr5WSIyKJ7Q"]]
|
59341
|
+
Unpermitted parameter: user
|
59342
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59343
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:05:19.773711"], ["updated_at", "2015-10-31 15:05:19.773711"]]
|
59344
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59345
|
+
Redirected to http://test.host/articles/1
|
59346
|
+
Completed 302 Found in 22ms (ActiveRecord: 1.5ms)
|
59347
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59348
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59350
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59351
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$4NryyplAa4ojNF0Do5ZUXen/xf53kwjgQ3SL8m8WW50rRl9c/PSP6"], ["remember_token", "EspUM8VI2NQC1Xyc1etuPg"], ["created_at", "2015-10-31 15:08:24.355441"], ["updated_at", "2015-10-31 15:08:24.355441"]]
|
59352
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59353
|
+
[1m[35mAdeia::Element Load (0.7ms)[0m SELECT "adeia_elements".* FROM "adeia_elements" WHERE "adeia_elements"."name" = ? LIMIT 1 [["name", "articles"]]
|
59354
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
59355
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "adeia_elements" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "articles"], ["created_at", "2015-10-31 15:08:24.408181"], ["updated_at", "2015-10-31 15:08:24.408181"]]
|
59356
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59357
|
+
[1m[35mAdeia::Action Load (0.6ms)[0m SELECT "adeia_actions".* FROM "adeia_actions" WHERE "adeia_actions"."name" = ? LIMIT 1 [["name", "share"]]
|
59358
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59359
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "adeia_actions" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "share"], ["created_at", "2015-10-31 15:08:24.428210"], ["updated_at", "2015-10-31 15:08:24.428210"]]
|
59360
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59361
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59362
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "adeia_permissions" ("adeia_element_id", "owner_id", "owner_type", "permission_type", "read_right", "create_right", "update_right", "destroy_right", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["adeia_element_id", 1], ["owner_id", 1], ["owner_type", "User"], ["permission_type", 0], ["read_right", "f"], ["create_right", "f"], ["update_right", "t"], ["destroy_right", "f"], ["created_at", "2015-10-31 15:08:24.470557"], ["updated_at", "2015-10-31 15:08:24.470557"]]
|
59363
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "adeia_action_permissions" ("adeia_action_id", "adeia_permission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["adeia_action_id", 1], ["adeia_permission_id", 1], ["created_at", "2015-10-31 15:08:24.474769"], ["updated_at", "2015-10-31 15:08:24.474769"]]
|
59364
|
+
[1m[36mAdeia::Action Load (0.1ms)[0m [1mSELECT "adeia_actions".* FROM "adeia_actions" WHERE "adeia_actions"."name" = ? LIMIT 1[0m [["name", "share"]]
|
59365
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59366
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59368
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "editor"], ["password_digest", "$2a$04$3xcwjmKJ4EIPvrvS/Jaf8.EGMONE.2GOwhTprEI8I6lMX.7buw/gO"], ["remember_token", "zL4vI-zTJgjRKOUedUUbpQ"], ["created_at", "2015-10-31 15:08:24.505294"], ["updated_at", "2015-10-31 15:08:24.505294"]]
|
59369
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59371
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:08:24.508204"], ["updated_at", "2015-10-31 15:08:24.508204"]]
|
59372
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59373
|
+
Processing by ArticlesController#edit as HTML
|
59374
|
+
Parameters: {"id"=>"1"}
|
59375
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "EspUM8VI2NQC1Xyc1etuPg"]]
|
59376
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
59377
|
+
[1m[35mAdeia::Token Load (0.7ms)[0m SELECT "adeia_tokens".* FROM "adeia_tokens" WHERE "adeia_tokens"."token" IS NULL LIMIT 1
|
59378
|
+
[1m[36mAdeia::Group Load (0.6ms)[0m [1mSELECT "adeia_groups".* FROM "adeia_groups" INNER JOIN "adeia_group_users" ON "adeia_group_users"."adeia_group_id" = "adeia_groups"."id" WHERE "adeia_group_users"."user_id" = 1[0m
|
59379
|
+
[1m[35m (0.2ms)[0m SELECT "adeia_permissions"."resource_id" FROM "adeia_permissions" INNER JOIN "adeia_elements" ON "adeia_elements"."id" = "adeia_permissions"."adeia_element_id" WHERE "adeia_permissions"."update_right" = ? AND "adeia_permissions"."owner_type" = 'User' AND "adeia_permissions"."owner_id" = 1 AND "adeia_elements"."name" = 'articles' [["update_right", "t"]]
|
59380
|
+
[1m[36mAdeia::Permission Load (0.1ms)[0m [1mSELECT "adeia_permissions".* FROM "adeia_permissions" INNER JOIN "adeia_elements" ON "adeia_elements"."id" = "adeia_permissions"."adeia_element_id" WHERE "adeia_permissions"."update_right" = ? AND "adeia_permissions"."owner_type" = 'User' AND "adeia_permissions"."owner_id" = 1 AND "adeia_elements"."name" = 'articles'[0m [["update_right", "t"]]
|
59381
|
+
Rendered articles/edit.html.erb within layouts/application (0.7ms)
|
59382
|
+
Completed 200 OK in 39ms (Views: 16.9ms | ActiveRecord: 2.4ms)
|
59383
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
59384
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59385
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59386
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
59387
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$gA9UzSI.av7t74ExTlLJXenT0zEqO9fbqp29EiFmqaolja9nwxFZK"], ["remember_token", "uDHFm2qbzitD-4M2jtpcew"], ["created_at", "2015-10-31 15:08:32.858626"], ["updated_at", "2015-10-31 15:08:32.858626"]]
|
59388
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59389
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59390
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59391
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$ZA8yoKH8.tr.REszDwBe.u/xv3qnvEa/hb6Dc1Y7xMbwbuhY1D1s."], ["remember_token", "K2BU_sIV_IPWeatshjC7fA"], ["created_at", "2015-10-31 15:08:32.906087"], ["updated_at", "2015-10-31 15:08:32.906087"]]
|
59392
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59393
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
59394
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59395
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59396
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
59397
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$P4JBfia9klVDKOKMgInP4uO6VdqNzAGqxA6/bjrET7ITYIahONaU6"], ["remember_token", "HALseQzhT3mC4IQVJyYQaw"], ["created_at", "2015-10-31 15:08:55.455363"], ["updated_at", "2015-10-31 15:08:55.455363"]]
|
59398
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59399
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59400
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
59401
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$E.i66sQ0O5rMrt35jbSqd.xxZLOBTmMWcqpUctsUrkm9DBRxjk5Ri"], ["remember_token", "1M87NIli-CtXs5J1kdTYIA"], ["created_at", "2015-10-31 15:08:55.489860"], ["updated_at", "2015-10-31 15:08:55.489860"]]
|
59402
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59403
|
+
Processing by ArticlesController#update as HTML
|
59404
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
|
59405
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
59406
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
59407
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59408
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59409
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59410
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$vvLgm1O4Cx6HHkaaNZ6cG.WbqsZ14rcBFBEjpb5RxrcQMsYCnD4dK"], ["remember_token", "8CCvIATtgkPKTEIhvdP_1w"], ["created_at", "2015-10-31 15:09:42.221157"], ["updated_at", "2015-10-31 15:09:42.221157"]]
|
59411
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59412
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59413
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
59414
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$EaIrzJExAD1PnZu7gJnv9O6IYiu5PRI9Oefx8b18vsKVapXe2KKCe"], ["remember_token", "SRM_IQyy0Tg03kbR3rPVtw"], ["created_at", "2015-10-31 15:09:42.257488"], ["updated_at", "2015-10-31 15:09:42.257488"]]
|
59415
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59416
|
+
Processing by ArticlesController#update as HTML
|
59417
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
|
59418
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "8CCvIATtgkPKTEIhvdP_1w"]]
|
59419
|
+
Unpermitted parameter: user
|
59420
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms)
|
59421
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59422
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59423
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59424
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
59425
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$O.yrii3/k5JjB0c7SKiy3OawPXcMY2rzcTLoe9FEMftE7zGNwABFS"], ["remember_token", "hFKeJwdTvk-xh2mBYLFKVA"], ["created_at", "2015-10-31 15:10:20.348051"], ["updated_at", "2015-10-31 15:10:20.348051"]]
|
59426
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59427
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59428
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59429
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$ya72z9Ass1m6aG1bzCBfKuhgCKV2qxUcliu9m7MH3UL8WIUzKP1PS"], ["remember_token", "j2OVBCKSTrTWpI-NFz0F0Q"], ["created_at", "2015-10-31 15:10:20.383632"], ["updated_at", "2015-10-31 15:10:20.383632"]]
|
59430
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59431
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59432
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:10:20.398036"], ["updated_at", "2015-10-31 15:10:20.398036"]]
|
59433
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59434
|
+
Processing by ArticlesController#update as HTML
|
59435
|
+
Parameters: {"id"=>"1"}
|
59436
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1[0m [["remember_token", "hFKeJwdTvk-xh2mBYLFKVA"]]
|
59437
|
+
Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
|
59438
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59439
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59440
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59441
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59442
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$FJ6vmuTdNMYUgdNFlRK6c.eYaarLhilSLS6vZdE6ok8iEE10dCvRO"], ["remember_token", "lTYxNN4GKhgxL0Yqdv2uHQ"], ["created_at", "2015-10-31 15:10:28.565237"], ["updated_at", "2015-10-31 15:10:28.565237"]]
|
59443
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59444
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59445
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59446
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$M5jo.ZBle5zye8QMm/Yf9Odo8VcZpIJFtUkLxhXnQIwbzFZcLK/qa"], ["remember_token", "CgT5s5VqeG_1krA02X2gwA"], ["created_at", "2015-10-31 15:10:28.602861"], ["updated_at", "2015-10-31 15:10:28.602861"]]
|
59447
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59448
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59449
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:10:28.615526"], ["updated_at", "2015-10-31 15:10:28.615526"]]
|
59450
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59451
|
+
Processing by ArticlesController#update as HTML
|
59452
|
+
Parameters: {"article"=>{}, "id"=>"1"}
|
59453
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1[0m [["remember_token", "lTYxNN4GKhgxL0Yqdv2uHQ"]]
|
59454
|
+
Completed 400 Bad Request in 2ms (ActiveRecord: 0.1ms)
|
59455
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59456
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59457
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59458
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59459
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$YLJZ61eEKAthzGnHxDJJSOOJbRx9PaQTbg4D8TmTHsjO6sSK.qt8W"], ["remember_token", "dlxoXciUbMVn1wxl69zfCw"], ["created_at", "2015-10-31 15:10:40.197075"], ["updated_at", "2015-10-31 15:10:40.197075"]]
|
59460
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59461
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59462
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59463
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$w3g7tPbhB5U.ACpQxEbwWutFL2ySn0vAFOsPPgTAF0eDQAsV76NWy"], ["remember_token", "Urn5QhJByALfDUdQ-QsHMA"], ["created_at", "2015-10-31 15:10:40.236695"], ["updated_at", "2015-10-31 15:10:40.236695"]]
|
59464
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59465
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59466
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:10:40.247398"], ["updated_at", "2015-10-31 15:10:40.247398"]]
|
59467
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59468
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59469
|
+
Processing by ArticlesController#update as HTML
|
59470
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
|
59471
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "dlxoXciUbMVn1wxl69zfCw"]]
|
59472
|
+
Unpermitted parameter: user
|
59473
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)
|
59474
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59475
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59476
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59477
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59478
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$zXV0kM4BDIjdXBukHj5b3eSKQc3wwzcyGaAXNJEE2RhFAyH4Nkew."], ["remember_token", "zJXLB2u1kUPYiGtmZYUCHg"], ["created_at", "2015-10-31 15:11:21.368110"], ["updated_at", "2015-10-31 15:11:21.368110"]]
|
59479
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59480
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59481
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59482
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$KIJBEjESiuhkfu8.Vc2VxuW4KBLqSeYl9zd/Uabd1KOFPPCpmrYPK"], ["remember_token", "yaI-XS_pSG0a7MP2Vy3GwQ"], ["created_at", "2015-10-31 15:11:21.395397"], ["updated_at", "2015-10-31 15:11:21.395397"]]
|
59483
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59484
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59485
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:11:21.403467"], ["updated_at", "2015-10-31 15:11:21.403467"]]
|
59486
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59487
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59488
|
+
Processing by ArticlesController#update as HTML
|
59489
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
|
59490
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "zJXLB2u1kUPYiGtmZYUCHg"]]
|
59491
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
59492
|
+
Unpermitted parameter: user
|
59493
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59494
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59495
|
+
Redirected to http://test.host/articles/1
|
59496
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
59497
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
59498
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59499
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59500
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59501
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$P9Dd8hYnOPA./ovxc4bjJusu0q8qufb1OI2eez1GnmbJr.kl8a7ke"], ["remember_token", "HBwNZ-xBd5sTAoOgSthUcg"], ["created_at", "2015-10-31 15:12:34.901353"], ["updated_at", "2015-10-31 15:12:34.901353"]]
|
59502
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59503
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59504
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59505
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$xkeAYeVeVYDJcHthKa8lbuZR5GnTTWNMALwfQqwECXjwQsXLwjcBS"], ["remember_token", "Fm4hXR1n25S_2hcHkd-oRQ"], ["created_at", "2015-10-31 15:12:34.932673"], ["updated_at", "2015-10-31 15:12:34.932673"]]
|
59506
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59507
|
+
Processing by ArticlesController#create as HTML
|
59508
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
|
59509
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "HBwNZ-xBd5sTAoOgSthUcg"]]
|
59510
|
+
Unpermitted parameter: user
|
59511
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59512
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:12:34.961461"], ["updated_at", "2015-10-31 15:12:34.961461"]]
|
59513
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59514
|
+
Redirected to http://test.host/articles/1
|
59515
|
+
Completed 302 Found in 26ms (ActiveRecord: 1.7ms)
|
59516
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59517
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59518
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59519
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59520
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59521
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "editor"], ["password_digest", "$2a$04$OhWdgZH403fB16Rj462EyOCczAMsYKPjFxTrLlLLk2BzDPG3gC0PC"], ["remember_token", "Ug_DzBvTZLGmj8YyQCBL-A"], ["created_at", "2015-10-31 15:15:08.385637"], ["updated_at", "2015-10-31 15:15:08.385637"]]
|
59522
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59523
|
+
Processing by ArticlesController#create as HTML
|
59524
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"1"}}
|
59525
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."remember_token" IS NULL LIMIT 1[0m
|
59526
|
+
Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.1ms)
|
59527
|
+
[1m[35m (3.0ms)[0m rollback transaction
|
59528
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59529
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59530
|
+
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59531
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59532
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "editor"], ["password_digest", "$2a$04$BSO0u1Z27W1SWJcieUsKC..TCV7q3ive92SfD0xT5nEKHgcrjhCnS"], ["remember_token", "Lh0CWl5ZIBg3Yw6sAfYtqw"], ["created_at", "2015-10-31 15:15:16.113142"], ["updated_at", "2015-10-31 15:15:16.113142"]]
|
59533
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59534
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59535
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:15:16.129792"], ["updated_at", "2015-10-31 15:15:16.129792"]]
|
59536
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59537
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59538
|
+
Processing by ArticlesController#update as HTML
|
59539
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"1"}, "id"=>"1"}
|
59540
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."remember_token" IS NULL LIMIT 1[0m
|
59541
|
+
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.1ms)
|
59542
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
59543
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59545
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59546
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$0dEK/gJHvRnt7eCrScq5bunqJ80BGMIOaB0f6sp5E2h.oY6d.XdPm"], ["remember_token", "8DfD0i0IeIZ1pTaE8vdh7g"], ["created_at", "2015-10-31 15:16:19.211850"], ["updated_at", "2015-10-31 15:16:19.211850"]]
|
59547
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59548
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59549
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59550
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$m3g15iK2x080FFo1mSDyPeStooFTCanM1iZS1NzJqL4idydbAntm."], ["remember_token", "fPg5zeaj67PhLIHhPL-qUA"], ["created_at", "2015-10-31 15:16:19.236104"], ["updated_at", "2015-10-31 15:16:19.236104"]]
|
59551
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59552
|
+
Processing by ArticlesController#create as HTML
|
59553
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
|
59554
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "8DfD0i0IeIZ1pTaE8vdh7g"]]
|
59555
|
+
Unpermitted parameter: user
|
59556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59557
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:16:19.256759"], ["updated_at", "2015-10-31 15:16:19.256759"]]
|
59558
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59559
|
+
Redirected to http://test.host/articles/1
|
59560
|
+
Completed 302 Found in 18ms (ActiveRecord: 1.5ms)
|
59561
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59562
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59564
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
59565
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$AWdkAoJuTOQ/vQPpuejOCeZIHm/can144wmFGtLoTmBFL6hmOh1u."], ["remember_token", "w7ptNEgvHS4TsCtU7VKIvA"], ["created_at", "2015-10-31 15:17:01.541493"], ["updated_at", "2015-10-31 15:17:01.541493"]]
|
59566
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59567
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
59568
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59569
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59570
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59571
|
+
[1m[35mSQL (2.0ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$.PCF7N.gIWiEm.KA87MwdusnrjrWn2bTKnbg7txJGHdi.qRYTNTmu"], ["remember_token", "jSvMJ7KK96wyuAgJWH1abw"], ["created_at", "2015-10-31 15:17:16.883197"], ["updated_at", "2015-10-31 15:17:16.883197"]]
|
59572
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59573
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59574
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59575
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$VSlFa/gjfcqiBwTVZX1iYO.NhUYSpfx2hiQTcNOg4RnC3kYP8noZS"], ["remember_token", "8Xp3K89HSLv8XI2Bj9Yffw"], ["created_at", "2015-10-31 15:17:16.919958"], ["updated_at", "2015-10-31 15:17:16.919958"]]
|
59576
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59577
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59578
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:17:16.934980"], ["updated_at", "2015-10-31 15:17:16.934980"]]
|
59579
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59580
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59581
|
+
Processing by ArticlesController#update as HTML
|
59582
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
|
59583
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "jSvMJ7KK96wyuAgJWH1abw"]]
|
59584
|
+
[1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
59585
|
+
Unpermitted parameter: user
|
59586
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59587
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59588
|
+
Redirected to http://test.host/articles/1
|
59589
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
|
59590
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59591
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59592
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59593
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59594
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$MWDR/SrVcQNikrxSDC9zH.l34u9GTmfKX/onfRRDPp5PFP.aem9eO"], ["remember_token", "ZObHuKvAcPPpfFG1H8fzFQ"], ["created_at", "2015-10-31 15:17:53.872399"], ["updated_at", "2015-10-31 15:17:53.872399"]]
|
59595
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59596
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59597
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59598
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$NvHUmUWz7ZmgXwBizeYhZOIaO21gQAo/Nc.Ubadzf6sTBj/nSm94q"], ["remember_token", "2ED1B4aqVGhuPm0TdvG74Q"], ["created_at", "2015-10-31 15:17:53.907445"], ["updated_at", "2015-10-31 15:17:53.907445"]]
|
59599
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59600
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59601
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:17:53.919519"], ["updated_at", "2015-10-31 15:17:53.919519"]]
|
59602
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59603
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59604
|
+
Processing by ArticlesController#update as HTML
|
59605
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
|
59606
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "ZObHuKvAcPPpfFG1H8fzFQ"]]
|
59607
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
59608
|
+
Unpermitted parameter: user
|
59609
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59610
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59611
|
+
Redirected to http://test.host/articles/1
|
59612
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
59613
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59614
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59615
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59616
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59617
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$bB7lTCQPFuH2g6iT4Ldaw.i24n9AfOtSzYzGX1DapF4i9kmkr5RV6"], ["remember_token", "OJVBzFDMrjV5dBUV-TvCUw"], ["created_at", "2015-10-31 15:18:14.916476"], ["updated_at", "2015-10-31 15:18:14.916476"]]
|
59618
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59619
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59620
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59621
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$GCo5jZ4ata4bn.wOGqz5Fe0lQRehp8RPz1Y6XvPvHJ7Pb4nOPFYN."], ["remember_token", "G7hQpP6YAv0W02w3ylifpQ"], ["created_at", "2015-10-31 15:18:14.944213"], ["updated_at", "2015-10-31 15:18:14.944213"]]
|
59622
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59623
|
+
Processing by ArticlesController#create as HTML
|
59624
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
|
59625
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "OJVBzFDMrjV5dBUV-TvCUw"]]
|
59626
|
+
Unpermitted parameter: user
|
59627
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59628
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:18:14.977048"], ["updated_at", "2015-10-31 15:18:14.977048"]]
|
59629
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59630
|
+
Redirected to http://test.host/articles/1
|
59631
|
+
Completed 302 Found in 28ms (ActiveRecord: 1.5ms)
|
59632
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
59633
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59634
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59635
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
59636
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$1hXUDNOaKSI2ozPHmKPTSOHD7kfz72XehjPXBj2hhpcBWosduBVti"], ["remember_token", "X91dWPMr4a5LO4cEiOm_gg"], ["created_at", "2015-10-31 15:18:37.153209"], ["updated_at", "2015-10-31 15:18:37.153209"]]
|
59637
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59638
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59639
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
59640
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$KvoxNmrXpLDbs1Z6n9tFlOr8q4npbCatXzB6e9/TlC1NmH36hMmzy"], ["remember_token", "83ice_9sZdsBhlWjBozbbA"], ["created_at", "2015-10-31 15:18:37.185995"], ["updated_at", "2015-10-31 15:18:37.185995"]]
|
59641
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59642
|
+
Processing by ArticlesController#create as HTML
|
59643
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
|
59644
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "X91dWPMr4a5LO4cEiOm_gg"]]
|
59645
|
+
Unpermitted parameter: user
|
59646
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59647
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:18:37.215159"], ["updated_at", "2015-10-31 15:18:37.215159"]]
|
59648
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59649
|
+
Redirected to http://test.host/articles/1
|
59650
|
+
Completed 302 Found in 25ms (ActiveRecord: 1.6ms)
|
59651
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
59652
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59654
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
59655
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$w5IHipCOfUAw76Nw9oY3M.dcYU2hDrk4oqS38nIYmBEFGIP1rU98u"], ["remember_token", "Qd_1Q9rYcGNNfUYVUXoBrA"], ["created_at", "2015-10-31 15:19:29.373825"], ["updated_at", "2015-10-31 15:19:29.373825"]]
|
59656
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59657
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
|
59658
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59659
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$.61KJtxw6sW6BzMiT1WQqOqTvt0kdpYauf5VM06uCAs/EqGK4MSYu"], ["remember_token", "iYPN95LAWqGuBFCH1-IDvg"], ["created_at", "2015-10-31 15:19:29.421705"], ["updated_at", "2015-10-31 15:19:29.421705"]]
|
59660
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59661
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59662
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:19:29.433980"], ["updated_at", "2015-10-31 15:19:29.433980"]]
|
59663
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59664
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1[0m [["name", "editor"]]
|
59665
|
+
Processing by ArticlesController#update as HTML
|
59666
|
+
Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
|
59667
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "Qd_1Q9rYcGNNfUYVUXoBrA"]]
|
59668
|
+
[1m[36mArticle Load (0.2ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
59669
|
+
Unpermitted parameter: user
|
59670
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59671
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59672
|
+
Redirected to http://test.host/articles/1
|
59673
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
|
59674
|
+
[1m[35m (0.8ms)[0m rollback transaction
|