Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Latest commit

 

History

History
118 lines (116 loc) · 16.8 KB

3rd.md

File metadata and controls

118 lines (116 loc) · 16.8 KB

第三回

順序

  • view templateにpry仕掛ける
    • caller ["/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:275:in eval'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:275:in re'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:251:in rep'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:231:in block (3 levels) in repl'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:230:in loop'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:230:in block (2 levels) in repl'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:229:in catch'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:229:in block in repl'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:228:in catch'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_instance.rb:228:in repl'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/pry_class.rb:154:in start'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pry-0.9.10/lib/pry/core_extensions.rb:22:in pry'", "/Users/Altech/dev/reading/sample_app/app/views/top/sample_uri.html.erb:1:in _app_views_top_sample_uri_html_erb___81405462258063618_70333085691840'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/template.rb:145:in block in render'", # compile!(view)で動的に生成したメソッド"_app_views_top_sample_uri_html_erb___81405462258063618_70333085691840"をview.send(method_name, locals, buffer, &block)で実行 "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications.rb:125:in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/template.rb:143:in render'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/template_renderer.rb:47:in block (2 levels) in render_template'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/abstract_renderer.rb:38:in block in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in block in instrument'", *# ここからyeildの繰り返し* "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:20:in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/abstract_renderer.rb:38:in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/template_renderer.rb:46:in block in render_template'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/template_renderer.rb:54:in render_with_layout'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/template_renderer.rb:45:in render_template'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/template_renderer.rb:18:in render'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/renderer.rb:36:in render_template'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_view/renderer/renderer.rb:17:in render'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/rendering.rb:110:in _render_template'", *# view_renderer.render(view_context, options)* "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/streaming.rb:225:in _render_template'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/rendering.rb:103:in render_to_body'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/renderers.rb:28:in render_to_body'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/compatibility.rb:50:in render_to_body'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/rendering.rb:88:in render'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/rendering.rb:16:in render'", *# レンダリングを2回行なっていたらエラー* "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:40:in block (2 levels) in render'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/core_ext/benchmark.rb:5:in block in ms'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/benchmark.rb:295:in realtime'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/core_ext/benchmark.rb:5:in ms'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:40:in block in render'", # superでrender "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:83:in cleanup_view_runtime'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/railties/controller_runtime.rb:25:in cleanup_view_runtime'", # activerecordが呼ばれる、superでinstrumentationのcleanup_view_runtime "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:39:in render'", *# render_ouput = nilは初期化?* "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/implicit_render.rb:10:in default_render'", # レンダリング開始 "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/implicit_render.rb:5:in send_action'", *# 4行目のsuperでcontrollerが呼ばれて返ってくる* "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/base.rb:167:in process_action'", # 第二回はここまで "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/rendering.rb:10:in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/callbacks.rb:18:in block in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:414:in _run__4463825490755022980__process_action__3514355939723691761__callbacks'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in __run_callback'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in _run_process_action_callbacks'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in run_callbacks'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/callbacks.rb:17:in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/rescue.rb:29:in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:30:in block in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in block in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:20:in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in instrument'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:29:in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/params_wrapper.rb:207:in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/railties/controller_runtime.rb:19:in process_action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/base.rb:121:in process'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/rendering.rb:45:in process'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal.rb:203:in dispatch'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/rack_delegation.rb:14:in dispatch'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal.rb:246:in block in action'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:73:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:73:in dispatch'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:36:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in block in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in each'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:601:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/best_standards_support.rb:17:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/etag.rb:23:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/conditionalget.rb:25:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/head.rb:14:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/params_parser.rb:21:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/flash.rb:242:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/session/abstract/id.rb:210:in context'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/session/abstract/id.rb:205:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/cookies.rb:341:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/query_cache.rb:64:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:28:in block in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in _run__1465629442523285567__call__3804984686480999010__callbacks'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in __run_callback'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in _run_call_callbacks'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in run_callbacks'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:27:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb:65:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/remote_ip.rb:31:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/show_exceptions.rb:56:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:32:in call_app'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in block in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/tagged_logging.rb:22:in tagged'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/request_id.rb:22:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/methodoverride.rb:21:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/runtime.rb:17:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/cache/strategy/local_cache.rb:72:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/lock.rb:15:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/static.rb:62:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/engine.rb:479:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/application.rb:223:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/content_length.rb:14:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/rack/log_tailer.rb:17:in call'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/rack-1.4.4/lib/rack/handler/webrick.rb:59:in service'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in service'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in run'", "/Users/Altech/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in block in start_thread'"]