dynamic-fields-for 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/README.md +3 -1
  2. data/lib/dynamic-fields-for/form_helper.rb +46 -19
  3. data/lib/dynamic-fields-for/version.rb +1 -1
  4. data/spec/rails_app/db/development.sqlite3 +0 -0
  5. data/spec/rails_app/log/development.log +506 -0
  6. data/spec/rails_app/log/test.log +2240 -0
  7. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/14dB4ooOL-CryPeUF84ShjnfDby0FZ2cftOr-r_03LY.cache +0 -0
  8. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/2NRi_RKXdfZkIby0TBge2Yb9pTRNcKVKZYYn4MrFFYo.cache +1 -0
  9. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/3Ml8X3oHdLRvYIm3Z2bgq0ErAO9DIIdfufZY6xxk_bQ.cache +1 -0
  10. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/4LYhxnvRwaLlxyh9dZBFFu_aFKV14A4A29s9Lq5fwvY.cache +1 -0
  11. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/5ImaJ-8yhc5JOk0n6shlvwTdUUkwDEYGB2wYK8sxflg.cache +1 -0
  12. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/75hhAZMKWt2iEvT6waTvfZsJY728_w7_k69W4diG5pk.cache +0 -0
  13. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/9CVm97VXM_R6nB8AyUWv0-mg9VUJ0ZBHMqzp3z6KBYA.cache +2 -0
  14. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/GejDYp_IcL9_z140Ht_bUnuDmLfUilO6KrD1f4S0OCU.cache +1 -0
  15. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/P-NPHOYBfhzg_4wEYB32fn9z7qwf_5kP-DNW_STmm7M.cache +1 -0
  16. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Q5wmtXXKfbNskFFuTMjkFc9zdBh9S1KcVLjdIrmP5qE.cache +1 -0
  17. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/RLRDP3vBQ-TZ151Q1PfGmvtS57-a6IU2OG2Fz-7kpKk.cache +2 -0
  18. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/RzDmtYfK-3P-j2HtoIzPzkA8WN4Kxj9t-wGVLYXzmDI.cache +0 -0
  19. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/UQWc1Yrb7yl4y8KGTEjRTabBEHY5fDhcgO7LaqccVKM.cache +1 -0
  20. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/V10JbcfuvpND2sCUgc1bp_v-VWWyZDeNBByADCmjIEE.cache +0 -0
  21. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/VZy5Mnw1SaUWEIzuBP2-lONNZVCkzNFhfDM6NlgNaI8.cache +0 -0
  22. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Wt_OTU0ay_WUYP4kutzOv-RU-rsRnz-JeHhfoXYMJ4k.cache +7 -0
  23. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ax4INE415tsnkjbMxr8bJecUtRIEeuf091wX8q28ask.cache +0 -0
  24. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/bH71seiu5IgIEswdHw0MxVy2Bft5eTYq7p-J1z2wLSE.cache +1 -0
  25. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/dECjFRb8ENLZv3W9RsKrENZVKFa_x7gZ5XcRiFEJkRQ.cache +1 -0
  26. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/eNprtHafGdba5dtQlS_N1G8L11lWApwBoQnFaW0-_Xg.cache +0 -0
  27. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/hFbp9B-T1BhYYVTUE-NENpiN2vQ0A-EEJP3yfEv8voM.cache +2 -0
  28. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/heGBDGbnGeh-IZGuaRzME1CTXaNtkzGgrfQCLKbKlxA.cache +1 -0
  29. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/k5POkyE0JUCcc3gsZOC5c9o6vE3tnR6ilmw5H69LVU0.cache +1 -0
  30. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/mKQKN_P_8jYD-Q80hhjvo4e3LImaXAMIThYLqa9Apvw.cache +0 -0
  31. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/q6Q5iVuKHhUgLzQY3g42H2AATl06s2304_8Pzvnn3pc.cache +1 -0
  32. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/qPjyW0sqKLF_koGEYacxrcwWU60QCfFEwfVXStO1K3I.cache +2 -0
  33. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/qR91bsQpPA-HEuiuDxbhOztkov6V-ajsnDXq2NNzn48.cache +1 -0
  34. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vx8EGBfAgWYzN9GZaSNrEQltO_Owbj4F8eq5GI8eQBc.cache +1 -0
  35. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/wsTMfLbj2DGVQ9_iTFLS4nHX0IQBRJUhxpusR9e82AY.cache +1 -0
  36. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/wukuVHgoW7ddJHSkoaJz1TxDX1BuchCVzwCRHwD8RYE.cache +1 -0
  37. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/xT9aSUCXI9_uo2DpiU0FvOG4p4O9y5PQgJo9Y3qCZ_I.cache +1 -0
  38. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ySJMBl8_8f1TC2JeQF-Rnp4A9M84cYN97jeVikGSTus.cache +2 -0
  39. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ycFz2IZoAY9nrg5sRLcKjn3-G189mmUQloTZvZsMrao.cache +1 -0
  40. data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/zce5Iy3NoJn18jE2wKigep31s_lEPAhKP3zRfwjdeZY.cache +1 -0
  41. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/0NRh_LjzC7bMsTBBklEznzuxtbLi31msc0AOUHiIZSg.cache +1 -0
  42. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/1LoVrQmwK7omgDLsoEk8Gtf8ZnSCqjW9Hm04SiXV3rM.cache +1 -0
  43. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/5ImaJ-8yhc5JOk0n6shlvwTdUUkwDEYGB2wYK8sxflg.cache +1 -0
  44. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/6QwzFEsT0XBzRa9umN5IX6_2u-5V99IlWQWM-ZFCGF8.cache +1 -0
  45. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/6WutQd7Hvgwzz0zK2qQcn7HsKjNW5IplWoYMXrrtgV0.cache +1 -0
  46. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/F9uT8KadAbYfQgqp8QsoLzd_YYZ8PIaJ3voRkJOBgII.cache +1 -0
  47. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/HtC6XFWSEEiE7Uxv_P9hx13zrNDoeWV0ffTMR-V5iMk.cache +1 -0
  48. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/MCG0CG6w4T-LDJOGOju_YaCgytzqzRPvK5SMQFd4lEU.cache +1 -0
  49. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/NlCREUPRHGcsPz6Wbw6AiWjylgcxh-w1nItTjik5-XE.cache +1 -0
  50. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Prdzdv5uVx0HWmqqx1KN_uoyUsOD6x2koGIWl6OoKjo.cache +1 -0
  51. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/UQWc1Yrb7yl4y8KGTEjRTabBEHY5fDhcgO7LaqccVKM.cache +1 -0
  52. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/WNCwIHeRbovn4wJgBgYRiO_2FotYGJ_ngzABT2Ux47g.cache +1 -0
  53. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/a-pfNxUN-uCy0_2yXmvq_Yqb7Zyp3qvPmK0TPD56a2c.cache +1 -0
  54. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/bbVdKMDw436amTxSH-HZNn24hS6yPxSODa1fzA4Oo4E.cache +1 -0
  55. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/dECjFRb8ENLZv3W9RsKrENZVKFa_x7gZ5XcRiFEJkRQ.cache +1 -0
  56. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/heGBDGbnGeh-IZGuaRzME1CTXaNtkzGgrfQCLKbKlxA.cache +1 -0
  57. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/htmEOGAD10c39LWSDZrDLiN2rGKPfohBymLw_DhLXOw.cache +1 -0
  58. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/nlTDSwsFw6U1lR3NjV5GwJKXijpqDNwaE5hQEMo2nC4.cache +1 -0
  59. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ogogKUpT9BjV_zv7iAkGR-pdenbR6TfICV3y0xH-hXw.cache +1 -0
  60. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/twZdDxyMyy4BQYvXvMUMOmFM5xaeLdAvKm68tL53uFQ.cache +1 -0
  61. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vx8EGBfAgWYzN9GZaSNrEQltO_Owbj4F8eq5GI8eQBc.cache +1 -0
  62. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ySJMBl8_8f1TC2JeQF-Rnp4A9M84cYN97jeVikGSTus.cache +0 -0
  63. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ySpT9r7EDM_tPF7c011Rc3MB2Nag8EBoA3LIRaNw6is.cache +1 -0
  64. data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/zce5Iy3NoJn18jE2wKigep31s_lEPAhKP3zRfwjdeZY.cache +1 -0
  65. data/spec/rails_app/tmp/pids/server.pid +1 -0
  66. data/spec/spec_helper.rb +3 -0
  67. metadata +118 -2
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  DynamicFieldsFor
2
2
  ================
3
- [![Gem Version](https://badge.fury.io/rb/dynamic-fields-for.svg)](http://badge.fury.io/rb/dynamic-fields-for)
3
+ [![Version](https://badge.fury.io/rb/dynamic-fields-for.svg)](http://badge.fury.io/rb/dynamic-fields-for)
4
4
  [![Build](https://travis-ci.org/stokarenko/dynamic-fields-for.svg)](https://travis-ci.org/stokarenko/dynamic-fields-for)
5
+ [![Climate](https://codeclimate.com/github/stokarenko/dynamic-fields-for/badges/gpa.svg)](https://codeclimate.com/github/stokarenko/dynamic-fields-for)
6
+ [![Coverage](https://codeclimate.com/github/stokarenko/dynamic-fields-for/badges/coverage.svg)](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
- @template.content_tag(:script, nil, data: {
31
- 'dynamic-fields-begin' => options[:dynamic_fields_id],
32
- 'dynamic-fields-add-template' => CGI.escapeHTML(add_template).html_safe,
33
- 'dynamic-fields-remove-template' => CGI.escapeHTML(remove_template).html_safe
34
- }) +
35
- collection_output +
36
- @template.content_tag(:script, nil, data: {
37
- 'dynamic-fields-end' => options[:dynamic_fields_id]
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, '#', {data: {'dynamic-fields-add' => dynamic_fields_id(association)}}.deep_merge(options))
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
- data_options = {data: {'dynamic-fields-remove' => @options[:dynamic_fields_id]}}
47
- data_options[:data]['dynamic-fields-remove-id'] = @object.id if @object.try(:persisted?)
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, '#', data_options.deep_merge(options))
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
- dynamic_item_begin_mark = fields_options.has_key?(:dynamic_fields_id) ?
54
- @template.content_tag(:script, nil, data: {
55
- 'dynamic-fields-item-begin' => fields_options[:dynamic_fields_id]
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
@@ -1,3 +1,3 @@
1
1
  module DynamicFieldsFor
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  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
+ User Load (0.2ms) SELECT "users".* FROM "users"
1976
+ SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users"
1977
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1978
+  (0.1ms) select sqlite_version(*)
1979
+  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1980
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1981
+ Migrating to CreateTables (1)
1982
+  (0.0ms) begin transaction
1983
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_name" varchar(255))
1984
+  (0.1ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role_name" varchar(255)) 
1985
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
1986
+  (0.5ms) commit transaction
1987
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1988
+  (0.2ms) begin transaction
1989
+ Fixture Delete (0.2ms) DELETE FROM "roles"
1990
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("role_name", "id", "user_id") VALUES ('role 2', 642956446, 953441985)
1991
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("role_name", "id", "user_id") VALUES ('role 1', 1062989094, 953441985)
1992
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("role_name", "id", "user_id") VALUES ('role 0', 140303797, 953441985)
1993
+  (4.2ms) commit transaction
1994
+  (0.1ms) begin transaction
1995
+ Fixture Delete (0.1ms) DELETE FROM "users"
1996
+ Fixture Insert (0.1ms) INSERT INTO "users" ("user_name", "id") VALUES ('Existing user', 953441985)
1997
+  (0.5ms) commit transaction
1998
+ User Load (1.2ms) SELECT "users".* FROM "users"
1999
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2000
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["user_id", 953441985]]
2001
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2002
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2003
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["user_id", 953441985]]
2004
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2005
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2006
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? ORDER BY "roles"."id" ASC LIMIT 1 OFFSET 41 [["user_id", 953441985]]
2007
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2008
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? LIMIT 1 [["user_id", 953441985]]
2009
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2010
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["user_id", 953441985]]
2011
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
2012
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["user_id", 953441985]]
2013
+ User Load (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2080
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2101
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2122
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2141
+ Processing by UsersController#events as HTML
2142
+ Parameters: {"id"=>"953441985"}
2143
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2144
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2163
+ Processing by UsersController#events as HTML
2164
+ Parameters: {"id"=>"953441985"}
2165
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2166
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2185
+ Processing by UsersController#events as HTML
2186
+ Parameters: {"id"=>"953441985"}
2187
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2188
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2207
+ Processing by UsersController#events as HTML
2208
+ Parameters: {"id"=>"953441985"}
2209
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2210
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2229
+ Processing by UsersController#events as HTML
2230
+ Parameters: {"id"=>"953441985"}
2231
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2232
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2256
+ Processing by UsersController#events as HTML
2257
+ Parameters: {"id"=>"953441985"}
2258
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2259
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2278
+ Processing by UsersController#events as HTML
2279
+ Parameters: {"id"=>"953441985"}
2280
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2281
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2300
+ Processing by UsersController#events as HTML
2301
+ Parameters: {"id"=>"953441985"}
2302
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2303
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2322
+ Processing by UsersController#events as HTML
2323
+ Parameters: {"id"=>"953441985"}
2324
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2325
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2366
+ Role Load (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2385
+ Processing by UsersController#events as HTML
2386
+ Parameters: {"id"=>"953441985"}
2387
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2388
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" WHERE "roles"."user_id" = ? [["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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 953441985]]
2429
+ Role Load (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2437
+ Processing by UsersController#edit_without_fields as HTML
2438
+ Parameters: {"id"=>"953441985"}
2439
+ User Load (0.1ms) 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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2461
+ Processing by UsersController#edit_without_fields as HTML
2462
+ Parameters: {"id"=>"953441985"}
2463
+ User Load (0.1ms) 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)