express_templates 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/express_templates/components/form_for.rb +13 -5
- data/lib/express_templates/version.rb +1 -1
- data/test/components/form_for_test.rb +4 -4
- data/test/dummy/log/development.log +396 -0
- data/test/dummy/log/test.log +48827 -476
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +6 -17
- data/test/dummy/tmp/cache/assets/development/sprockets/219e4ef52e71a2dd3142d36271626492 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/29331726baea36717bf28565c0be1881 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4584795e7f513db14ffca10dab44759e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/72a227156d935c44e2aad8718b3952fb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cfea650552ed221f83ea2c8fc3198c53 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e27275f4020fd1fc40de79a1e5db4c96 +0 -0
- data/test/fixtures/a_big_page2.html +0 -595
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d742a1eb7b837967378382a6d1d389a272a6bf8c
|
4
|
+
data.tar.gz: b6b8a96819bb587a242093ca991af100f5e62853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 931e15f70ec9d4a1a060c4f6f09c4ae2821e7cc571c91aee3f1580cf26d83e99475ac956d06b1d6282492a2302124e507bae218d1a692d7636623ecb202af428
|
7
|
+
data.tar.gz: 062fe5cef79a19962a304ca6e53c539ba685af8a5845926a12f3a911201c6b4f7f57d9f533ff4b8df99368e590fb409d800062cad9c2419d1182a487b6b5a101
|
@@ -277,9 +277,17 @@ module ExpressTemplates
|
|
277
277
|
# # <input type="submit" name="submit primary" value: "Save" />
|
278
278
|
# # <a href="#" onclick="return false;" class="cancel secondary">Cancel it</a>
|
279
279
|
# # </div>
|
280
|
-
|
280
|
+
#
|
281
|
+
# You can also add extra wrapper div classes for more customization
|
282
|
+
# ==== Examples
|
283
|
+
# f.actions({submit: ['Save', {class: 'submit primary'}], cancel: ['Cancel it', class: 'cancel secondary']}, wrapper_class: 'form-group')
|
284
|
+
# # <div class='form-group'>
|
285
|
+
# # <input type="submit" name="submit primary" value: "Save" />
|
286
|
+
# # <a href="#" onclick="return false;" class="cancel secondary">Cancel it</a>
|
287
|
+
# # </div>
|
288
|
+
def actions(extra_actions, options)
|
281
289
|
@fields ||= []
|
282
|
-
@fields << Actions.new(extra_actions)
|
290
|
+
@fields << Actions.new(extra_actions, options)
|
283
291
|
end
|
284
292
|
|
285
293
|
emits -> {
|
@@ -385,7 +393,7 @@ module ExpressTemplates
|
|
385
393
|
def initialize(name, options = {}, type=:text)
|
386
394
|
@name = name
|
387
395
|
@options = options
|
388
|
-
@label = options
|
396
|
+
@label = @options.delete(:label)
|
389
397
|
@wrapper_class = @options.delete(:wrapper_class)
|
390
398
|
@type = type
|
391
399
|
end
|
@@ -439,11 +447,11 @@ module ExpressTemplates
|
|
439
447
|
# need to fix this some day (actions doesn't need to inherit from field)
|
440
448
|
class Actions < Field
|
441
449
|
attr :extra_actions
|
442
|
-
def initialize(extra_actions)
|
443
|
-
@type = :actions
|
450
|
+
def initialize(extra_actions, options = {})
|
444
451
|
@name = ''
|
445
452
|
@label = ''
|
446
453
|
@extra_actions = extra_actions
|
454
|
+
super(@name, options, :actions)
|
447
455
|
end
|
448
456
|
end
|
449
457
|
end
|
@@ -31,7 +31,7 @@ class FormForTest < ActiveSupport::TestCase
|
|
31
31
|
</div>
|
32
32
|
|
33
33
|
<div class=\"\">
|
34
|
-
"+%Q(#{label_tag("resource_name", "post title")})+%Q(#{text_field_tag("resource[name]", @resource.name,
|
34
|
+
"+%Q(#{label_tag("resource_name", "post title")})+%Q(#{text_field_tag("resource[name]", @resource.name, {})})+"
|
35
35
|
</div>
|
36
36
|
|
37
37
|
<div class=\"\">
|
@@ -120,7 +120,7 @@ class FormForTest < ActiveSupport::TestCase
|
|
120
120
|
form_for(:resource, method: :put, url: '/posts') do |f|
|
121
121
|
f.text_field :name, label: 'post title'
|
122
122
|
f.text_field :body, class: 'string'
|
123
|
-
f.actions({submit: ['Save', {class: 'submit primary'}], cancel: ['Cancel it', class: 'cancel secondary']})
|
123
|
+
f.actions({submit: ['Save', {class: 'submit primary'}], cancel: ['Cancel it', class: 'cancel secondary']}, wrapper_class: 'form-group widget-buttons')
|
124
124
|
end
|
125
125
|
}
|
126
126
|
return ctx, fragment
|
@@ -142,14 +142,14 @@ class FormForTest < ActiveSupport::TestCase
|
|
142
142
|
</div>
|
143
143
|
|
144
144
|
<div class=\"\">
|
145
|
-
"+%Q(#{label_tag("resource_name", "post title")})+%Q(#{text_field_tag("resource[name]", @resource.name,
|
145
|
+
"+%Q(#{label_tag("resource_name", "post title")})+%Q(#{text_field_tag("resource[name]", @resource.name, {})})+"
|
146
146
|
</div>
|
147
147
|
|
148
148
|
<div class=\"\">
|
149
149
|
"+%Q(#{label_tag("resource_body", "Body")})+%Q(#{text_field_tag("resource[body]", @resource.body, class: "string")})+"
|
150
150
|
</div>
|
151
151
|
|
152
|
-
<div class=\"\">
|
152
|
+
<div class=\"form-group widget-buttons\">
|
153
153
|
"+%Q(#{submit_tag("Save", class: "submit primary")})+"
|
154
154
|
<a href=\"#\" onclick=\"return false;\" class=\"cancel secondary\">Cancel it</a>
|
155
155
|
</div>
|
@@ -0,0 +1,396 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Started GET "/" for ::1 at 2015-02-09 08:08:20 +0800
|
4
|
+
Processing by Rails::WelcomeController#index as HTML
|
5
|
+
Rendered /Users/eumir/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/templates/rails/welcome/index.html.erb (1.8ms)
|
6
|
+
Completed 200 OK in 9ms (Views: 9.4ms)
|
7
|
+
|
8
|
+
|
9
|
+
Started GET "/hello" for ::1 at 2015-02-09 08:08:34 +0800
|
10
|
+
Processing by HelloController#show as HTML
|
11
|
+
Rendered hello/show.html.et within layouts/application (6.1ms)
|
12
|
+
Completed 200 OK in 58ms (Views: 57.8ms)
|
13
|
+
|
14
|
+
|
15
|
+
Started GET "/assets/application.css?body=1" for ::1 at 2015-02-09 08:08:34 +0800
|
16
|
+
|
17
|
+
|
18
|
+
Started GET "/assets/application.js?body=1" for ::1 at 2015-02-09 08:08:34 +0800
|
19
|
+
|
20
|
+
|
21
|
+
Started GET "/hello" for ::1 at 2015-02-09 08:08:58 +0800
|
22
|
+
Processing by HelloController#show as HTML
|
23
|
+
Rendered hello/show.html.et within layouts/application (3.3ms)
|
24
|
+
Completed 500 Internal Server Error in 8ms
|
25
|
+
|
26
|
+
NoMethodError - undefined method `first' for #<ExpressTemplates::Markup::Wrapper:0x007fed4c490930>:
|
27
|
+
app/views/hello/show.html.et:4:in `block in expand'
|
28
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/expander.rb:37:in `process_children!'
|
29
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/expander.rb:61:in `block (2 levels) in register_macros_for'
|
30
|
+
app/views/hello/show.html.et:4:in `expand'
|
31
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/expander.rb:25:in `expand'
|
32
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/compiler.rb:11:in `compile'
|
33
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/template/handler.rb:10:in `call'
|
34
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/template/handler.rb:5:in `call'
|
35
|
+
actionview (4.2.0) lib/action_view/template.rb:270:in `compile'
|
36
|
+
actionview (4.2.0) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
|
37
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:166:in `instrument'
|
38
|
+
actionview (4.2.0) lib/action_view/template.rb:333:in `instrument'
|
39
|
+
actionview (4.2.0) lib/action_view/template.rb:244:in `block in compile!'
|
40
|
+
actionview (4.2.0) lib/action_view/template.rb:232:in `compile!'
|
41
|
+
actionview (4.2.0) lib/action_view/template.rb:144:in `block in render'
|
42
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:166:in `instrument'
|
43
|
+
actionview (4.2.0) lib/action_view/template.rb:333:in `instrument'
|
44
|
+
actionview (4.2.0) lib/action_view/template.rb:143:in `render'
|
45
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
|
46
|
+
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
|
47
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
|
48
|
+
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
49
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
|
50
|
+
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
|
51
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
|
52
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
|
53
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
|
54
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:14:in `render'
|
55
|
+
actionview (4.2.0) lib/action_view/renderer/renderer.rb:42:in `render_template'
|
56
|
+
actionview (4.2.0) lib/action_view/renderer/renderer.rb:23:in `render'
|
57
|
+
actionview (4.2.0) lib/action_view/rendering.rb:100:in `_render_template'
|
58
|
+
actionpack (4.2.0) lib/action_controller/metal/streaming.rb:217:in `_render_template'
|
59
|
+
actionview (4.2.0) lib/action_view/rendering.rb:83:in `render_to_body'
|
60
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
|
61
|
+
actionpack (4.2.0) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
|
62
|
+
actionpack (4.2.0) lib/abstract_controller/rendering.rb:25:in `render'
|
63
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:16:in `render'
|
64
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
|
65
|
+
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
|
66
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
|
67
|
+
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `ms'
|
68
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
|
69
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
|
70
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:40:in `render'
|
71
|
+
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
|
72
|
+
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
|
73
|
+
actionpack (4.2.0) lib/abstract_controller/base.rb:198:in `process_action'
|
74
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
75
|
+
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
|
76
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'
|
77
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in `block in halting'
|
78
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
|
79
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
80
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
|
81
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
82
|
+
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
|
83
|
+
actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
84
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
|
85
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
|
86
|
+
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
87
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
|
88
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
|
89
|
+
actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
|
90
|
+
actionpack (4.2.0) lib/abstract_controller/base.rb:137:in `process'
|
91
|
+
actionview (4.2.0) lib/action_view/rendering.rb:30:in `process'
|
92
|
+
actionpack (4.2.0) lib/action_controller/metal.rb:195:in `dispatch'
|
93
|
+
actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
|
94
|
+
actionpack (4.2.0) lib/action_controller/metal.rb:236:in `block in action'
|
95
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
96
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in `serve'
|
97
|
+
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in `block in serve'
|
98
|
+
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `serve'
|
99
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in `call'
|
100
|
+
rack (1.6.0) lib/rack/etag.rb:24:in `call'
|
101
|
+
rack (1.6.0) lib/rack/conditionalget.rb:25:in `call'
|
102
|
+
rack (1.6.0) lib/rack/head.rb:13:in `call'
|
103
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
|
104
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in `call'
|
105
|
+
rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
|
106
|
+
rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
|
107
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
|
108
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
109
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in `_run_callbacks'
|
110
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
|
111
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
112
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
113
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
114
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
|
115
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
|
116
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
|
117
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
|
118
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
119
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
120
|
+
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
|
121
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
|
122
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
123
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
|
124
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
|
125
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
|
126
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
127
|
+
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
|
128
|
+
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
|
129
|
+
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
130
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
131
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
|
132
|
+
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
|
133
|
+
railties (4.2.0) lib/rails/engine.rb:518:in `call'
|
134
|
+
railties (4.2.0) lib/rails/application.rb:164:in `call'
|
135
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
136
|
+
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
|
137
|
+
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
|
138
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
139
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
140
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
Started POST "/__better_errors/2392f92fe17f8b25/variables" for ::1 at 2015-02-09 08:08:59 +0800
|
145
|
+
|
146
|
+
|
147
|
+
Started GET "/hello" for ::1 at 2015-02-09 08:10:24 +0800
|
148
|
+
Processing by HelloController#show as HTML
|
149
|
+
Rendered hello/show.html.et within layouts/application (0.7ms)
|
150
|
+
Completed 500 Internal Server Error in 4ms
|
151
|
+
|
152
|
+
SyntaxError - syntax error, unexpected '}', expecting =>
|
153
|
+
...Wrapper.new("@hello") )'.first}} }
|
154
|
+
... ^
|
155
|
+
app/views/hello/show.html.et:5: syntax error, unexpected end-of-input, expecting '}':
|
156
|
+
app/views/hello/show.html.et:4:in `'
|
157
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/expander.rb:25:in `expand'
|
158
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/compiler.rb:11:in `compile'
|
159
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/template/handler.rb:10:in `call'
|
160
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/template/handler.rb:5:in `call'
|
161
|
+
actionview (4.2.0) lib/action_view/template.rb:270:in `compile'
|
162
|
+
actionview (4.2.0) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
|
163
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:166:in `instrument'
|
164
|
+
actionview (4.2.0) lib/action_view/template.rb:333:in `instrument'
|
165
|
+
actionview (4.2.0) lib/action_view/template.rb:244:in `block in compile!'
|
166
|
+
actionview (4.2.0) lib/action_view/template.rb:232:in `compile!'
|
167
|
+
actionview (4.2.0) lib/action_view/template.rb:144:in `block in render'
|
168
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:166:in `instrument'
|
169
|
+
actionview (4.2.0) lib/action_view/template.rb:333:in `instrument'
|
170
|
+
actionview (4.2.0) lib/action_view/template.rb:143:in `render'
|
171
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
|
172
|
+
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
|
173
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
|
174
|
+
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
175
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
|
176
|
+
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
|
177
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
|
178
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
|
179
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
|
180
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:14:in `render'
|
181
|
+
actionview (4.2.0) lib/action_view/renderer/renderer.rb:42:in `render_template'
|
182
|
+
actionview (4.2.0) lib/action_view/renderer/renderer.rb:23:in `render'
|
183
|
+
actionview (4.2.0) lib/action_view/rendering.rb:100:in `_render_template'
|
184
|
+
actionpack (4.2.0) lib/action_controller/metal/streaming.rb:217:in `_render_template'
|
185
|
+
actionview (4.2.0) lib/action_view/rendering.rb:83:in `render_to_body'
|
186
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
|
187
|
+
actionpack (4.2.0) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
|
188
|
+
actionpack (4.2.0) lib/abstract_controller/rendering.rb:25:in `render'
|
189
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:16:in `render'
|
190
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
|
191
|
+
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
|
192
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
|
193
|
+
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `ms'
|
194
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
|
195
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
|
196
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:40:in `render'
|
197
|
+
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
|
198
|
+
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
|
199
|
+
actionpack (4.2.0) lib/abstract_controller/base.rb:198:in `process_action'
|
200
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
201
|
+
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
|
202
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'
|
203
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in `block in halting'
|
204
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
|
205
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
206
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
|
207
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
208
|
+
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
|
209
|
+
actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
210
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
|
211
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
|
212
|
+
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
213
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
|
214
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
|
215
|
+
actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
|
216
|
+
actionpack (4.2.0) lib/abstract_controller/base.rb:137:in `process'
|
217
|
+
actionview (4.2.0) lib/action_view/rendering.rb:30:in `process'
|
218
|
+
actionpack (4.2.0) lib/action_controller/metal.rb:195:in `dispatch'
|
219
|
+
actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
|
220
|
+
actionpack (4.2.0) lib/action_controller/metal.rb:236:in `block in action'
|
221
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
222
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in `serve'
|
223
|
+
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in `block in serve'
|
224
|
+
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `serve'
|
225
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in `call'
|
226
|
+
rack (1.6.0) lib/rack/etag.rb:24:in `call'
|
227
|
+
rack (1.6.0) lib/rack/conditionalget.rb:25:in `call'
|
228
|
+
rack (1.6.0) lib/rack/head.rb:13:in `call'
|
229
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
|
230
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in `call'
|
231
|
+
rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
|
232
|
+
rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
|
233
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
|
234
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
235
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in `_run_callbacks'
|
236
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
|
237
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
238
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
239
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
240
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
|
241
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
|
242
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
|
243
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
|
244
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
245
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
246
|
+
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
|
247
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
|
248
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
249
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
|
250
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
|
251
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
|
252
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
253
|
+
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
|
254
|
+
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
|
255
|
+
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
256
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
257
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
|
258
|
+
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
|
259
|
+
railties (4.2.0) lib/rails/engine.rb:518:in `call'
|
260
|
+
railties (4.2.0) lib/rails/application.rb:164:in `call'
|
261
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
262
|
+
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
|
263
|
+
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
|
264
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
265
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
266
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
Started POST "/__better_errors/2d68e6f94470c3cc/variables" for ::1 at 2015-02-09 08:10:24 +0800
|
271
|
+
|
272
|
+
|
273
|
+
Started GET "/hello" for ::1 at 2015-02-09 08:10:29 +0800
|
274
|
+
Processing by HelloController#show as HTML
|
275
|
+
Rendered hello/show.html.et within layouts/application (0.7ms)
|
276
|
+
Completed 500 Internal Server Error in 4ms
|
277
|
+
|
278
|
+
SyntaxError - syntax error, unexpected '}', expecting =>
|
279
|
+
...:Wrapper.new("@hello") ).first}} }
|
280
|
+
... ^
|
281
|
+
app/views/hello/show.html.et:5: syntax error, unexpected end-of-input, expecting '}':
|
282
|
+
app/views/hello/show.html.et:4:in `'
|
283
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/expander.rb:25:in `expand'
|
284
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/compiler.rb:11:in `compile'
|
285
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/template/handler.rb:10:in `call'
|
286
|
+
/Users/eumir/Projects/express_templates/lib/express_templates/template/handler.rb:5:in `call'
|
287
|
+
actionview (4.2.0) lib/action_view/template.rb:270:in `compile'
|
288
|
+
actionview (4.2.0) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
|
289
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:166:in `instrument'
|
290
|
+
actionview (4.2.0) lib/action_view/template.rb:333:in `instrument'
|
291
|
+
actionview (4.2.0) lib/action_view/template.rb:244:in `block in compile!'
|
292
|
+
actionview (4.2.0) lib/action_view/template.rb:232:in `compile!'
|
293
|
+
actionview (4.2.0) lib/action_view/template.rb:144:in `block in render'
|
294
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:166:in `instrument'
|
295
|
+
actionview (4.2.0) lib/action_view/template.rb:333:in `instrument'
|
296
|
+
actionview (4.2.0) lib/action_view/template.rb:143:in `render'
|
297
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
|
298
|
+
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
|
299
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
|
300
|
+
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
301
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
|
302
|
+
actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
|
303
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
|
304
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
|
305
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
|
306
|
+
actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:14:in `render'
|
307
|
+
actionview (4.2.0) lib/action_view/renderer/renderer.rb:42:in `render_template'
|
308
|
+
actionview (4.2.0) lib/action_view/renderer/renderer.rb:23:in `render'
|
309
|
+
actionview (4.2.0) lib/action_view/rendering.rb:100:in `_render_template'
|
310
|
+
actionpack (4.2.0) lib/action_controller/metal/streaming.rb:217:in `_render_template'
|
311
|
+
actionview (4.2.0) lib/action_view/rendering.rb:83:in `render_to_body'
|
312
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
|
313
|
+
actionpack (4.2.0) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
|
314
|
+
actionpack (4.2.0) lib/abstract_controller/rendering.rb:25:in `render'
|
315
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:16:in `render'
|
316
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
|
317
|
+
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
|
318
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
|
319
|
+
activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in `ms'
|
320
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
|
321
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
|
322
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:40:in `render'
|
323
|
+
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
|
324
|
+
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
|
325
|
+
actionpack (4.2.0) lib/abstract_controller/base.rb:198:in `process_action'
|
326
|
+
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
327
|
+
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
|
328
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'
|
329
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in `block in halting'
|
330
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'
|
331
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:92:in `_run_callbacks'
|
332
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
|
333
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
334
|
+
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
|
335
|
+
actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
336
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
|
337
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'
|
338
|
+
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
339
|
+
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
|
340
|
+
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
|
341
|
+
actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
|
342
|
+
actionpack (4.2.0) lib/abstract_controller/base.rb:137:in `process'
|
343
|
+
actionview (4.2.0) lib/action_view/rendering.rb:30:in `process'
|
344
|
+
actionpack (4.2.0) lib/action_controller/metal.rb:195:in `dispatch'
|
345
|
+
actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
|
346
|
+
actionpack (4.2.0) lib/action_controller/metal.rb:236:in `block in action'
|
347
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
348
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in `serve'
|
349
|
+
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in `block in serve'
|
350
|
+
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `serve'
|
351
|
+
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in `call'
|
352
|
+
rack (1.6.0) lib/rack/etag.rb:24:in `call'
|
353
|
+
rack (1.6.0) lib/rack/conditionalget.rb:25:in `call'
|
354
|
+
rack (1.6.0) lib/rack/head.rb:13:in `call'
|
355
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
|
356
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in `call'
|
357
|
+
rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
|
358
|
+
rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
|
359
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
|
360
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
361
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in `_run_callbacks'
|
362
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
|
363
|
+
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
364
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
365
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
366
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
|
367
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
|
368
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
|
369
|
+
better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
|
370
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
371
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
372
|
+
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
|
373
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
|
374
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
375
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
|
376
|
+
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
|
377
|
+
railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
|
378
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
379
|
+
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
|
380
|
+
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
|
381
|
+
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
382
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
383
|
+
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
|
384
|
+
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
|
385
|
+
railties (4.2.0) lib/rails/engine.rb:518:in `call'
|
386
|
+
railties (4.2.0) lib/rails/application.rb:164:in `call'
|
387
|
+
rack (1.6.0) lib/rack/lock.rb:17:in `call'
|
388
|
+
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
|
389
|
+
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
|
390
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
391
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
392
|
+
/Users/eumir/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
Started POST "/__better_errors/3fbc4c5ce39398f4/variables" for ::1 at 2015-02-09 08:10:29 +0800
|