dynamic-fields-for 1.0.1 → 1.0.2
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.
- data/README.md +3 -1
- data/lib/dynamic-fields-for/form_helper.rb +46 -19
- data/lib/dynamic-fields-for/version.rb +1 -1
- data/spec/rails_app/db/development.sqlite3 +0 -0
- data/spec/rails_app/log/development.log +506 -0
- data/spec/rails_app/log/test.log +2240 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/14dB4ooOL-CryPeUF84ShjnfDby0FZ2cftOr-r_03LY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/2NRi_RKXdfZkIby0TBge2Yb9pTRNcKVKZYYn4MrFFYo.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/3Ml8X3oHdLRvYIm3Z2bgq0ErAO9DIIdfufZY6xxk_bQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/4LYhxnvRwaLlxyh9dZBFFu_aFKV14A4A29s9Lq5fwvY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/5ImaJ-8yhc5JOk0n6shlvwTdUUkwDEYGB2wYK8sxflg.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/75hhAZMKWt2iEvT6waTvfZsJY728_w7_k69W4diG5pk.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/9CVm97VXM_R6nB8AyUWv0-mg9VUJ0ZBHMqzp3z6KBYA.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/GejDYp_IcL9_z140Ht_bUnuDmLfUilO6KrD1f4S0OCU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/P-NPHOYBfhzg_4wEYB32fn9z7qwf_5kP-DNW_STmm7M.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Q5wmtXXKfbNskFFuTMjkFc9zdBh9S1KcVLjdIrmP5qE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/RLRDP3vBQ-TZ151Q1PfGmvtS57-a6IU2OG2Fz-7kpKk.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/RzDmtYfK-3P-j2HtoIzPzkA8WN4Kxj9t-wGVLYXzmDI.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/UQWc1Yrb7yl4y8KGTEjRTabBEHY5fDhcgO7LaqccVKM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/V10JbcfuvpND2sCUgc1bp_v-VWWyZDeNBByADCmjIEE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/VZy5Mnw1SaUWEIzuBP2-lONNZVCkzNFhfDM6NlgNaI8.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Wt_OTU0ay_WUYP4kutzOv-RU-rsRnz-JeHhfoXYMJ4k.cache +7 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ax4INE415tsnkjbMxr8bJecUtRIEeuf091wX8q28ask.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/bH71seiu5IgIEswdHw0MxVy2Bft5eTYq7p-J1z2wLSE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/dECjFRb8ENLZv3W9RsKrENZVKFa_x7gZ5XcRiFEJkRQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/eNprtHafGdba5dtQlS_N1G8L11lWApwBoQnFaW0-_Xg.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/hFbp9B-T1BhYYVTUE-NENpiN2vQ0A-EEJP3yfEv8voM.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/heGBDGbnGeh-IZGuaRzME1CTXaNtkzGgrfQCLKbKlxA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/k5POkyE0JUCcc3gsZOC5c9o6vE3tnR6ilmw5H69LVU0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/mKQKN_P_8jYD-Q80hhjvo4e3LImaXAMIThYLqa9Apvw.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/q6Q5iVuKHhUgLzQY3g42H2AATl06s2304_8Pzvnn3pc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/qPjyW0sqKLF_koGEYacxrcwWU60QCfFEwfVXStO1K3I.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/qR91bsQpPA-HEuiuDxbhOztkov6V-ajsnDXq2NNzn48.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vx8EGBfAgWYzN9GZaSNrEQltO_Owbj4F8eq5GI8eQBc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/wsTMfLbj2DGVQ9_iTFLS4nHX0IQBRJUhxpusR9e82AY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/wukuVHgoW7ddJHSkoaJz1TxDX1BuchCVzwCRHwD8RYE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/xT9aSUCXI9_uo2DpiU0FvOG4p4O9y5PQgJo9Y3qCZ_I.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ySJMBl8_8f1TC2JeQF-Rnp4A9M84cYN97jeVikGSTus.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ycFz2IZoAY9nrg5sRLcKjn3-G189mmUQloTZvZsMrao.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/zce5Iy3NoJn18jE2wKigep31s_lEPAhKP3zRfwjdeZY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/0NRh_LjzC7bMsTBBklEznzuxtbLi31msc0AOUHiIZSg.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/1LoVrQmwK7omgDLsoEk8Gtf8ZnSCqjW9Hm04SiXV3rM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/5ImaJ-8yhc5JOk0n6shlvwTdUUkwDEYGB2wYK8sxflg.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/6QwzFEsT0XBzRa9umN5IX6_2u-5V99IlWQWM-ZFCGF8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/6WutQd7Hvgwzz0zK2qQcn7HsKjNW5IplWoYMXrrtgV0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/F9uT8KadAbYfQgqp8QsoLzd_YYZ8PIaJ3voRkJOBgII.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/HtC6XFWSEEiE7Uxv_P9hx13zrNDoeWV0ffTMR-V5iMk.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/MCG0CG6w4T-LDJOGOju_YaCgytzqzRPvK5SMQFd4lEU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/NlCREUPRHGcsPz6Wbw6AiWjylgcxh-w1nItTjik5-XE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Prdzdv5uVx0HWmqqx1KN_uoyUsOD6x2koGIWl6OoKjo.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/UQWc1Yrb7yl4y8KGTEjRTabBEHY5fDhcgO7LaqccVKM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/WNCwIHeRbovn4wJgBgYRiO_2FotYGJ_ngzABT2Ux47g.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/a-pfNxUN-uCy0_2yXmvq_Yqb7Zyp3qvPmK0TPD56a2c.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/bbVdKMDw436amTxSH-HZNn24hS6yPxSODa1fzA4Oo4E.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/dECjFRb8ENLZv3W9RsKrENZVKFa_x7gZ5XcRiFEJkRQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/heGBDGbnGeh-IZGuaRzME1CTXaNtkzGgrfQCLKbKlxA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/htmEOGAD10c39LWSDZrDLiN2rGKPfohBymLw_DhLXOw.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/nlTDSwsFw6U1lR3NjV5GwJKXijpqDNwaE5hQEMo2nC4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ogogKUpT9BjV_zv7iAkGR-pdenbR6TfICV3y0xH-hXw.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/twZdDxyMyy4BQYvXvMUMOmFM5xaeLdAvKm68tL53uFQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vx8EGBfAgWYzN9GZaSNrEQltO_Owbj4F8eq5GI8eQBc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ySJMBl8_8f1TC2JeQF-Rnp4A9M84cYN97jeVikGSTus.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ySpT9r7EDM_tPF7c011Rc3MB2Nag8EBoA3LIRaNw6is.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/zce5Iy3NoJn18jE2wKigep31s_lEPAhKP3zRfwjdeZY.cache +1 -0
- data/spec/rails_app/tmp/pids/server.pid +1 -0
- data/spec/spec_helper.rb +3 -0
- metadata +118 -2
data/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
DynamicFieldsFor
|
|
2
2
|
================
|
|
3
|
-
[](http://badge.fury.io/rb/dynamic-fields-for)
|
|
4
4
|
[](https://travis-ci.org/stokarenko/dynamic-fields-for)
|
|
5
|
+
[](https://codeclimate.com/github/stokarenko/dynamic-fields-for)
|
|
6
|
+
[](https://codeclimate.com/github/stokarenko/dynamic-fields-for/coverage)
|
|
5
7
|
|
|
6
8
|
DynamicFieldsFor is a Rails plugin which provides the dynamic association fieldsets to your forms without a pain. And it does nothing more.
|
|
7
9
|
|
|
@@ -27,36 +27,38 @@ module DynamicFieldsFor
|
|
|
27
27
|
options.delete(:child_index)
|
|
28
28
|
collection_output = fields_for_without_dynamic_fields(association, record_object, options, &block)
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
cover_by_anchors(
|
|
31
|
+
{
|
|
32
|
+
begin: options[:dynamic_fields_id],
|
|
33
|
+
'add-template' => CGI.escapeHTML(add_template),
|
|
34
|
+
'remove-template' => CGI.escapeHTML(remove_template)
|
|
35
|
+
},
|
|
36
|
+
collection_output,
|
|
37
|
+
{end: options[:dynamic_fields_id]}
|
|
38
|
+
)
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def add_fields_link(association, label, options = {})
|
|
42
|
-
@template.link_to(label, '#',
|
|
42
|
+
@template.link_to(label, '#', dynamic_fields_data_options(add: dynamic_fields_id(association)).deep_merge(options))
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def remove_fields_link(label, options = {})
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
anchor_options = {}.tap do |mem|
|
|
47
|
+
if @options.has_key?(:dynamic_fields_id)
|
|
48
|
+
mem[:remove] = @options[:dynamic_fields_id]
|
|
49
|
+
mem['remove-id'] = @object.id if @object.try(:persisted?)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
48
52
|
|
|
49
|
-
@template.link_to(label, '#',
|
|
53
|
+
@template.link_to(label, '#', dynamic_fields_data_options(anchor_options).deep_merge(options))
|
|
50
54
|
end
|
|
51
55
|
|
|
52
56
|
def fields_for_nested_model_with_dynamic_fields(name, object, fields_options, block)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}) : ''.html_safe
|
|
57
|
-
|
|
58
|
-
dynamic_item_begin_mark +
|
|
57
|
+
cover_by_anchors_if(
|
|
58
|
+
fields_options.has_key?(:dynamic_fields_id),
|
|
59
|
+
{'item-begin' => fields_options[:dynamic_fields_id]},
|
|
59
60
|
fields_for_nested_model_without_dynamic_fields(name, object, fields_options, block)
|
|
61
|
+
)
|
|
60
62
|
end
|
|
61
63
|
|
|
62
64
|
private
|
|
@@ -65,5 +67,30 @@ module DynamicFieldsFor
|
|
|
65
67
|
"#{self.object_id}-#{association}"
|
|
66
68
|
end
|
|
67
69
|
|
|
70
|
+
def dynamic_fields_data_options(anchor_options)
|
|
71
|
+
return nil if anchor_options.nil?
|
|
72
|
+
|
|
73
|
+
anchor_options.inject({data: {}}) do |mem, (key, value)|
|
|
74
|
+
mem[:data][:"dynamic-fields-#{key}"] = value.html_safe? ? value : value.html_safe
|
|
75
|
+
mem
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def cover_by_anchors(begin_anchor_options, content, end_anchor_options = nil)
|
|
80
|
+
anchor(begin_anchor_options) + content + anchor(end_anchor_options)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def cover_by_anchors_if(condition, begin_anchor_options, content, end_anchor_options = nil)
|
|
84
|
+
condition ?
|
|
85
|
+
cover_by_anchors(begin_anchor_options, content, end_anchor_options) :
|
|
86
|
+
content
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def anchor(anchor_options)
|
|
90
|
+
return ''.html_safe if anchor_options.nil?
|
|
91
|
+
|
|
92
|
+
@template.content_tag(:script, nil, dynamic_fields_data_options(anchor_options))
|
|
93
|
+
end
|
|
94
|
+
|
|
68
95
|
end
|
|
69
96
|
end
|
|
Binary file
|
|
@@ -1972,3 +1972,509 @@ Served asset /application.js - 304 Not Modified (2ms)
|
|
|
1972
1972
|
|
|
1973
1973
|
Started GET "/assets/dynamic-fields-for.js?body=1" for 127.0.0.1 at 2015-05-08 21:06:32 +0300
|
|
1974
1974
|
Served asset /dynamic-fields-for.js - 304 Not Modified (1ms)
|
|
1975
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
|
1976
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users"
|
|
1977
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
1978
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
1979
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
1980
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1981
|
+
Migrating to CreateTables (1)
|
|
1982
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1983
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_name" varchar(255))
|
|
1984
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role_name" varchar(255)) [0m
|
|
1985
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
|
|
1986
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
|
1987
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1988
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
1989
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "roles"
|
|
1990
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "roles" ("role_name", "id", "user_id") VALUES ('role 2', 642956446, 953441985)[0m
|
|
1991
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "roles" ("role_name", "id", "user_id") VALUES ('role 1', 1062989094, 953441985)
|
|
1992
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "roles" ("role_name", "id", "user_id") VALUES ('role 0', 140303797, 953441985)[0m
|
|
1993
|
+
[1m[35m (4.2ms)[0m commit transaction
|
|
1994
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1995
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
|
1996
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("user_name", "id") VALUES ('Existing user', 953441985)[0m
|
|
1997
|
+
[1m[35m (0.5ms)[0m commit transaction
|
|
1998
|
+
[1m[36mUser Load (1.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
|
1999
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
2000
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2001
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
2002
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2003
|
+
[1m[35mRole Load (0.1ms)[0m SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["user_id", 953441985]]
|
|
2004
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2005
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
2006
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? ORDER BY "roles"."id" ASC LIMIT 1 OFFSET 41[0m [["user_id", 953441985]]
|
|
2007
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
2008
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? LIMIT 1[0m [["user_id", 953441985]]
|
|
2009
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
2010
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2011
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
2012
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2013
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
Started GET "/users/test" for 127.0.0.1 at 2015-05-10 10:49:48 +0300
|
|
2017
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2018
|
+
|
|
2019
|
+
AbstractController::ActionNotFound (The action 'show' could not be found for UsersController):
|
|
2020
|
+
actionpack (4.1.10) lib/abstract_controller/base.rb:131:in `process'
|
|
2021
|
+
actionview (4.1.10) lib/action_view/rendering.rb:30:in `process'
|
|
2022
|
+
actionpack (4.1.10) lib/action_controller/metal.rb:196:in `dispatch'
|
|
2023
|
+
actionpack (4.1.10) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
|
|
2024
|
+
actionpack (4.1.10) lib/action_controller/metal.rb:232:in `block in action'
|
|
2025
|
+
actionpack (4.1.10) lib/action_dispatch/routing/route_set.rb:82:in `call'
|
|
2026
|
+
actionpack (4.1.10) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
|
|
2027
|
+
actionpack (4.1.10) lib/action_dispatch/routing/route_set.rb:50:in `call'
|
|
2028
|
+
actionpack (4.1.10) lib/action_dispatch/journey/router.rb:73:in `block in call'
|
|
2029
|
+
actionpack (4.1.10) lib/action_dispatch/journey/router.rb:59:in `each'
|
|
2030
|
+
actionpack (4.1.10) lib/action_dispatch/journey/router.rb:59:in `call'
|
|
2031
|
+
actionpack (4.1.10) lib/action_dispatch/routing/route_set.rb:692:in `call'
|
|
2032
|
+
rack (1.5.2) lib/rack/etag.rb:23:in `call'
|
|
2033
|
+
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
|
|
2034
|
+
rack (1.5.2) lib/rack/head.rb:11:in `call'
|
|
2035
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
|
|
2036
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/flash.rb:254:in `call'
|
|
2037
|
+
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
|
|
2038
|
+
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
|
|
2039
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/cookies.rb:562:in `call'
|
|
2040
|
+
activerecord (4.1.10) lib/active_record/query_cache.rb:36:in `call'
|
|
2041
|
+
activerecord (4.1.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
|
|
2042
|
+
activerecord (4.1.10) lib/active_record/migration.rb:380:in `call'
|
|
2043
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
|
2044
|
+
activesupport (4.1.10) lib/active_support/callbacks.rb:82:in `run_callbacks'
|
|
2045
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
|
2046
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
|
2047
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
|
|
2048
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
|
2049
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
|
2050
|
+
railties (4.1.10) lib/rails/rack/logger.rb:38:in `call_app'
|
|
2051
|
+
railties (4.1.10) lib/rails/rack/logger.rb:20:in `block in call'
|
|
2052
|
+
activesupport (4.1.10) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
|
2053
|
+
activesupport (4.1.10) lib/active_support/tagged_logging.rb:26:in `tagged'
|
|
2054
|
+
activesupport (4.1.10) lib/active_support/tagged_logging.rb:68:in `tagged'
|
|
2055
|
+
railties (4.1.10) lib/rails/rack/logger.rb:20:in `call'
|
|
2056
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
|
2057
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
|
2058
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
|
2059
|
+
activesupport (4.1.10) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
|
|
2060
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
|
2061
|
+
actionpack (4.1.10) lib/action_dispatch/middleware/static.rb:84:in `call'
|
|
2062
|
+
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
|
|
2063
|
+
railties (4.1.10) lib/rails/engine.rb:514:in `call'
|
|
2064
|
+
railties (4.1.10) lib/rails/application.rb:144:in `call'
|
|
2065
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
|
2066
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
|
2067
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
|
2068
|
+
/Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
|
2069
|
+
/Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
|
2070
|
+
/Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (21.2ms)
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 10:49:54 +0300
|
|
2077
|
+
Processing by UsersController#events as HTML
|
|
2078
|
+
Parameters: {"id"=>"953441985"}
|
|
2079
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2080
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2081
|
+
Rendered users/events.html.haml within layouts/application (47.0ms)
|
|
2082
|
+
Completed 200 OK in 1326ms (Views: 1300.8ms | ActiveRecord: 0.6ms)
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:49:56 +0300
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:49:56 +0300
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:49:56 +0300
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:49:56 +0300
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 10:54:48 +0300
|
|
2098
|
+
Processing by UsersController#events as HTML
|
|
2099
|
+
Parameters: {"id"=>"953441985"}
|
|
2100
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2101
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2102
|
+
Rendered users/events.html.haml within layouts/application (3.6ms)
|
|
2103
|
+
Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.1ms)
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:48 +0300
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:48 +0300
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:48 +0300
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:48 +0300
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 10:54:51 +0300
|
|
2119
|
+
Processing by UsersController#events as HTML
|
|
2120
|
+
Parameters: {"id"=>"953441985"}
|
|
2121
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2122
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2123
|
+
Rendered users/events.html.haml within layouts/application (3.8ms)
|
|
2124
|
+
Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.1ms)
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:51 +0300
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:51 +0300
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:51 +0300
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:54:51 +0300
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 10:55:05 +0300
|
|
2140
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2141
|
+
Processing by UsersController#events as HTML
|
|
2142
|
+
Parameters: {"id"=>"953441985"}
|
|
2143
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2144
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2145
|
+
Rendered users/events.html.haml within layouts/application (48.4ms)
|
|
2146
|
+
Completed 200 OK in 243ms (Views: 199.2ms | ActiveRecord: 0.6ms)
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:55:06 +0300
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:55:06 +0300
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:55:06 +0300
|
|
2156
|
+
|
|
2157
|
+
|
|
2158
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:55:06 +0300
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 10:58:31 +0300
|
|
2162
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2163
|
+
Processing by UsersController#events as HTML
|
|
2164
|
+
Parameters: {"id"=>"953441985"}
|
|
2165
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2166
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2167
|
+
Rendered users/events.html.haml within layouts/application (66.2ms)
|
|
2168
|
+
Completed 200 OK in 275ms (Views: 251.3ms | ActiveRecord: 0.5ms)
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:32 +0300
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:32 +0300
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:32 +0300
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:32 +0300
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 10:58:54 +0300
|
|
2184
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2185
|
+
Processing by UsersController#events as HTML
|
|
2186
|
+
Parameters: {"id"=>"953441985"}
|
|
2187
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2188
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2189
|
+
Rendered users/events.html.haml within layouts/application (65.9ms)
|
|
2190
|
+
Completed 200 OK in 269ms (Views: 245.4ms | ActiveRecord: 0.5ms)
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:54 +0300
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:54 +0300
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:54 +0300
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:58:54 +0300
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 10:59:22 +0300
|
|
2206
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2207
|
+
Processing by UsersController#events as HTML
|
|
2208
|
+
Parameters: {"id"=>"953441985"}
|
|
2209
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2210
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2211
|
+
Rendered users/events.html.haml within layouts/application (47.9ms)
|
|
2212
|
+
Completed 200 OK in 245ms (Views: 202.9ms | ActiveRecord: 0.6ms)
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:59:22 +0300
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:59:22 +0300
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:59:22 +0300
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 10:59:22 +0300
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 11:05:53 +0300
|
|
2228
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2229
|
+
Processing by UsersController#events as HTML
|
|
2230
|
+
Parameters: {"id"=>"953441985"}
|
|
2231
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2232
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2233
|
+
Rendered users/events.html.haml within layouts/application (66.0ms)
|
|
2234
|
+
Completed 500 Internal Server Error in 95ms (ActiveRecord: 0.5ms)
|
|
2235
|
+
|
|
2236
|
+
ActionView::Template::Error (undefined method `gsub' for 140303797:Fixnum):
|
|
2237
|
+
4: .fields_container
|
|
2238
|
+
5: = f.fields_for :roles, dynamic: true do |rf|
|
|
2239
|
+
6: = rf.text_field :role_name, class: 'role_name'
|
|
2240
|
+
7: = rf.remove_fields_link 'Remove role', class: 'remove_link'
|
|
2241
|
+
8:
|
|
2242
|
+
9: = f.add_fields_link :roles, 'Add role'
|
|
2243
|
+
10:
|
|
2244
|
+
app/views/users/events.html.haml:7:in `block (2 levels) in _app_views_users_events_html_haml___4203429946409962851_70224050838940'
|
|
2245
|
+
app/views/users/events.html.haml:5:in `block in _app_views_users_events_html_haml___4203429946409962851_70224050838940'
|
|
2246
|
+
app/views/users/events.html.haml:1:in `_app_views_users_events_html_haml___4203429946409962851_70224050838940'
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.7ms)
|
|
2250
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms)
|
|
2251
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (9.4ms)
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 11:10:20 +0300
|
|
2255
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2256
|
+
Processing by UsersController#events as HTML
|
|
2257
|
+
Parameters: {"id"=>"953441985"}
|
|
2258
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2259
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2260
|
+
Rendered users/events.html.haml within layouts/application (67.6ms)
|
|
2261
|
+
Completed 200 OK in 270ms (Views: 246.8ms | ActiveRecord: 0.5ms)
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:10:20 +0300
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:10:20 +0300
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:10:20 +0300
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:10:20 +0300
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 11:11:58 +0300
|
|
2277
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2278
|
+
Processing by UsersController#events as HTML
|
|
2279
|
+
Parameters: {"id"=>"953441985"}
|
|
2280
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2281
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2282
|
+
Rendered users/events.html.haml within layouts/application (68.2ms)
|
|
2283
|
+
Completed 200 OK in 277ms (Views: 253.8ms | ActiveRecord: 0.6ms)
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:11:58 +0300
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:11:58 +0300
|
|
2290
|
+
|
|
2291
|
+
|
|
2292
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:11:58 +0300
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:11:58 +0300
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 11:26:17 +0300
|
|
2299
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2300
|
+
Processing by UsersController#events as HTML
|
|
2301
|
+
Parameters: {"id"=>"953441985"}
|
|
2302
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2303
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2304
|
+
Rendered users/events.html.haml within layouts/application (67.7ms)
|
|
2305
|
+
Completed 200 OK in 271ms (Views: 248.0ms | ActiveRecord: 0.6ms)
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:17 +0300
|
|
2309
|
+
|
|
2310
|
+
|
|
2311
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:17 +0300
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:17 +0300
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:17 +0300
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 11:26:51 +0300
|
|
2321
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2322
|
+
Processing by UsersController#events as HTML
|
|
2323
|
+
Parameters: {"id"=>"953441985"}
|
|
2324
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2325
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2326
|
+
Rendered users/events.html.haml within layouts/application (47.8ms)
|
|
2327
|
+
Completed 200 OK in 242ms (Views: 199.2ms | ActiveRecord: 0.6ms)
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:51 +0300
|
|
2331
|
+
|
|
2332
|
+
|
|
2333
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:51 +0300
|
|
2334
|
+
|
|
2335
|
+
|
|
2336
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:51 +0300
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:26:51 +0300
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
Started GET "/users/953441985/edit_without_fields" for 127.0.0.1 at 2015-05-10 11:27:02 +0300
|
|
2343
|
+
Processing by UsersController#edit_without_fields as HTML
|
|
2344
|
+
Parameters: {"id"=>"953441985"}
|
|
2345
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2346
|
+
Rendered users/edit_without_fields.html.haml within layouts/application (1.8ms)
|
|
2347
|
+
Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms)
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:02 +0300
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:02 +0300
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:02 +0300
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:02 +0300
|
|
2360
|
+
|
|
2361
|
+
|
|
2362
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 11:27:48 +0300
|
|
2363
|
+
Processing by UsersController#events as HTML
|
|
2364
|
+
Parameters: {"id"=>"953441985"}
|
|
2365
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 953441985]]
|
|
2366
|
+
[1m[35mRole Load (0.1ms)[0m SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["user_id", 953441985]]
|
|
2367
|
+
Rendered users/events.html.haml within layouts/application (3.5ms)
|
|
2368
|
+
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.1ms)
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:48 +0300
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:48 +0300
|
|
2375
|
+
|
|
2376
|
+
|
|
2377
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:48 +0300
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:27:48 +0300
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
Started GET "/users/953441985/events" for 127.0.0.1 at 2015-05-10 11:29:06 +0300
|
|
2384
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2385
|
+
Processing by UsersController#events as HTML
|
|
2386
|
+
Parameters: {"id"=>"953441985"}
|
|
2387
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2388
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ?[0m [["user_id", 953441985]]
|
|
2389
|
+
Rendered users/events.html.haml within layouts/application (66.8ms)
|
|
2390
|
+
Completed 200 OK in 272ms (Views: 248.5ms | ActiveRecord: 0.5ms)
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:06 +0300
|
|
2394
|
+
|
|
2395
|
+
|
|
2396
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:06 +0300
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:06 +0300
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:06 +0300
|
|
2403
|
+
|
|
2404
|
+
|
|
2405
|
+
Started GET "/users/953441985/edit_without_fields" for 127.0.0.1 at 2015-05-10 11:29:30 +0300
|
|
2406
|
+
Processing by UsersController#edit_without_fields as HTML
|
|
2407
|
+
Parameters: {"id"=>"953441985"}
|
|
2408
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2409
|
+
Rendered users/edit_without_fields.html.haml within layouts/application (1.8ms)
|
|
2410
|
+
Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms)
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
Started GET "/assets/jquery.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:30 +0300
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
Started GET "/assets/dynamic-fields-for.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:30 +0300
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:30 +0300
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2015-05-10 11:29:30 +0300
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
Started GET "/users/953441985/edit" for 127.0.0.1 at 2015-05-10 11:29:33 +0300
|
|
2426
|
+
Processing by UsersController#edit as HTML
|
|
2427
|
+
Parameters: {"id"=>"953441985"}
|
|
2428
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 953441985]]
|
|
2429
|
+
[1m[35mRole Load (0.1ms)[0m SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["user_id", 953441985]]
|
|
2430
|
+
Rendered users/_form.html.haml (191.2ms)
|
|
2431
|
+
Rendered users/edit.html.haml within layouts/application (194.2ms)
|
|
2432
|
+
Completed 200 OK in 205ms (Views: 203.4ms | ActiveRecord: 0.1ms)
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
Started GET "/users/953441985/edit_without_fields" for 127.0.0.1 at 2015-05-10 11:46:34 +0300
|
|
2436
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2437
|
+
Processing by UsersController#edit_without_fields as HTML
|
|
2438
|
+
Parameters: {"id"=>"953441985"}
|
|
2439
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2440
|
+
Rendered users/edit_without_fields.html.haml within layouts/application (25.4ms)
|
|
2441
|
+
Completed 500 Internal Server Error in 55ms (ActiveRecord: 0.3ms)
|
|
2442
|
+
|
|
2443
|
+
ActionView::Template::Error (undefined method `html_safe' for nil:NilClass):
|
|
2444
|
+
1: = link_to 'Edit', edit_user_path(@resource)
|
|
2445
|
+
2:
|
|
2446
|
+
3: = form_for @resource do |f|
|
|
2447
|
+
4: = f.remove_fields_link 'Remove without fields'
|
|
2448
|
+
5: = f.add_fields_link :roles, 'Add without fields'
|
|
2449
|
+
6: = f.submit 'Update without fields'
|
|
2450
|
+
app/views/users/edit_without_fields.html.haml:4:in `block in _app_views_users_edit_without_fields_html_haml__234313415473319117_70338428849860'
|
|
2451
|
+
app/views/users/edit_without_fields.html.haml:3:in `_app_views_users_edit_without_fields_html_haml__234313415473319117_70338428849860'
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.7ms)
|
|
2455
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms)
|
|
2456
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (7.8ms)
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+
Started GET "/users/953441985/edit_without_fields" for 127.0.0.1 at 2015-05-10 11:47:20 +0300
|
|
2460
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2461
|
+
Processing by UsersController#edit_without_fields as HTML
|
|
2462
|
+
Parameters: {"id"=>"953441985"}
|
|
2463
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
|
|
2464
|
+
Rendered users/edit_without_fields.html.haml within layouts/application (25.3ms)
|
|
2465
|
+
Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.3ms)
|
|
2466
|
+
|
|
2467
|
+
ActionView::Template::Error (undefined method `html_safe' for nil:NilClass):
|
|
2468
|
+
1: = link_to 'Edit', edit_user_path(@resource)
|
|
2469
|
+
2:
|
|
2470
|
+
3: = form_for @resource do |f|
|
|
2471
|
+
4: = f.remove_fields_link 'Remove without fields'
|
|
2472
|
+
5: = f.add_fields_link :roles, 'Add without fields'
|
|
2473
|
+
6: = f.submit 'Update without fields'
|
|
2474
|
+
app/views/users/edit_without_fields.html.haml:4:in `block in _app_views_users_edit_without_fields_html_haml___2220097102974969742_70283682653560'
|
|
2475
|
+
app/views/users/edit_without_fields.html.haml:3:in `_app_views_users_edit_without_fields_html_haml___2220097102974969742_70283682653560'
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.7ms)
|
|
2479
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms)
|
|
2480
|
+
Rendered /Users/st/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.10/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (6.8ms)
|