Closed romeo4934 closed 12 years ago
2aa9794b5cb6959dabedad95ef46ce89381c6d1a 941490362ca30f263f54b3c2551752fd05b4fac8
I'm also having this issue with Rails 3.2.13.rc2 + ruby 2.0.0
Can you upgrade to the latest version of Treat? We're no longer using this debug method.
Hi Louis Another little bug, when I want to use treat with rails, I have an error method when I load stylesheet_link_tag
<%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %>
I have this trace : The debug method of treat is overiding the debug method in rails I think .
wrong number of arguments (0 for 1) Extracted source (around line #11):
8: 9:
10: 11: <%= stylesheet_link_tag "application", :media => "all" %> 12: <%= javascript_include_tag "application" %> 13: 14:
Application Trace | Framework Trace | Full Trace treat (1.0.4) lib/treat/kernel.rb:184:in
debug' actionpack (3.2.3) lib/sprockets/helpers/rails_helper.rb:83:in
debug_assets?' actionpack (3.2.3) lib/sprockets/helpers/rails_helper.rb:39:instylesheet_link_tag' actionpack (3.2.3) lib/action_view/template.rb:143:in
block in render' activesupport (3.2.3) lib/active_support/notifications.rb:125:ininstrument' actionpack (3.2.3) lib/action_view/template.rb:141:in
render' actionpack (3.2.3) lib/action_view/renderer/template_renderer.rb:59:inrender_with_layout' actionpack (3.2.3) lib/action_view/renderer/template_renderer.rb:45:in
render_template' actionpack (3.2.3) lib/action_view/renderer/template_renderer.rb:18:inrender' actionpack (3.2.3) lib/action_view/renderer/renderer.rb:36:in
render_template' haml (3.1.5) lib/haml/helpers/rails_323_textarea_fix.rb:26:inrender_template_with_haml' actionpack (3.2.3) lib/action_view/renderer/renderer.rb:17:in
render' actionpack (3.2.3) lib/abstract_controller/rendering.rb:110:in_render_template' actionpack (3.2.3) lib/action_controller/metal/streaming.rb:225:in
_render_template' actionpack (3.2.3) lib/abstract_controller/rendering.rb:103:inrender_to_body' haml (3.1.5) lib/haml/helpers/rails_323_textarea_fix.rb:14:in
render_to_body_with_haml' actionpack (3.2.3) lib/action_controller/metal/renderers.rb:28:inrender_to_body' actionpack (3.2.3) lib/action_controller/metal/compatibility.rb:50:in
render_to_body' actionpack (3.2.3) lib/abstract_controller/rendering.rb:88:inrender' actionpack (3.2.3) lib/action_controller/metal/rendering.rb:16:in
render' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:40:inblock (2 levels) in render' activesupport (3.2.3) lib/active_support/core_ext/benchmark.rb:5:in
block in ms' /Users/ztera/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:inrealtime' activesupport (3.2.3) lib/active_support/core_ext/benchmark.rb:5:in
ms' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:40:inblock in render' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:83:in
cleanup_view_runtime' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:39:inrender' remotipart (1.0.2) lib/remotipart/render_overrides.rb:8:in
render' actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:10:indefault_render' actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:5:in
send_action' actionpack (3.2.3) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.3) lib/action_controller/metal/rendering.rb:10:in
process_action' actionpack (3.2.3) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.3) lib/active_support/callbacks.rb:425:in
_run563304916674385327process_action276644419250049832callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:405:in__run_callback' activesupport (3.2.3) lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.3) lib/abstract_controller/callbacks.rb:17:in
process_action' actionpack (3.2.3) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' activesupport (3.2.3) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.3) lib/active_support/notifications/instrumenter.rb:20:in
instrument' activesupport (3.2.3) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:29:in
process_action' actionpack (3.2.3) lib/action_controller/metal/params_wrapper.rb:205:inprocess_action' actionpack (3.2.3) lib/abstract_controller/base.rb:121:in
process' actionpack (3.2.3) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.2.3) lib/action_controller/metal.rb:203:in
dispatch' actionpack (3.2.3) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.2.3) lib/action_controller/metal.rb:246:in
block in action' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:incall' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:in
dispatch' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:36:incall' journey (1.0.3) lib/journey/router.rb:68:in
block in call' journey (1.0.3) lib/journey/router.rb:56:ineach' journey (1.0.3) lib/journey/router.rb:56:in
call' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:600:incall' rack-pjax (0.5.9) lib/rack/pjax.rb:12:in
call' mongoid (2.4.10) lib/rack/mongoid/middleware/identity_map.rb:33:inblock in call' mongoid (2.4.10) lib/mongoid.rb:133:in
unit_of_work' mongoid (2.4.10) lib/rack/mongoid/middleware/identity_map.rb:33:incall' sass (3.1.18) lib/sass/plugin/rack.rb:54:in
call' warden (1.1.1) lib/warden/manager.rb:35:inblock in call' warden (1.1.1) lib/warden/manager.rb:34:in
catch' warden (1.1.1) lib/warden/manager.rb:34:incall' actionpack (3.2.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call