Skip to content

Instantly share code, notes, and snippets.

@ma11hew28
Created August 16, 2008 15:11
Show Gist options
  • Save ma11hew28/5720 to your computer and use it in GitHub Desktop.
Save ma11hew28/5720 to your computer and use it in GitHub Desktop.
undefined method `capture_haml' for SproutCore::ViewHelperSupport:Module - (NoMethodError)
- content_for('body') do
- view :header, :class => 'sc-header sc-square-theme' do
.left.app-label{:onClick => 'ScAdmin.appController.showAbout();'}
%img{:src => static_url('images/scadmin-logo.png')}
= label_view :outlet => true, :tag => :span, :value => 'Administration'
<% content_for('body') do %>
<% view :header, :class => 'sc-header sc-square-theme' do %>
<div class="left app-label" onClick = 'ScAdmin.appController.showAbout();'>
<img src="<%= static_url('images/scadmin-logo.png') %>" />
<%= label_view :outlet => true, :tag => :span, :value =>'Administration' %>
</div>
<% end %>
<% end %>
#<SproutCore::Bundle:0x1a137e4>
~ Building Html: index.html
~ Started request handling: Sat Aug 16 11:06:50 -0400 2008
~ Params: {"action"=>"main", "controller"=>"sprout_core_bundle_controller_0"}
~ undefined method `capture_haml' for SproutCore::ViewHelperSupport:Module - (NoMethodError)
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/helpers/capture_helper.rb:36:in `content_for'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/view_helpers.rb:554:in `render_view'
(eval):3:in `view'
(haml):2:in `to_html'
/Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/helpers.rb:400:in `call'
/Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/helpers.rb:400:in `capture_haml_with_buffer'
/Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/helpers.rb:257:in `capture_haml'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/helpers/capture_helper.rb:16:in `capture'
(eval):1:in `content_for'
(haml):1:in `eval'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/helpers/capture_helper.rb:36:in `content_for'
(haml):1:in `to_html'
/Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/engine.rb:148:in `to_html'
/Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/engine.rb:148:in `instance_eval'
/Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/engine.rb:148:in `to_html'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/build_tools/html_builder.rb:98:in `_render_one'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/build_tools/html_builder.rb:65:in `build'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/build_tools/html_builder.rb:65:in `each'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/build_tools/html_builder.rb:65:in `build'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/build_tools/html_builder.rb:122:in `build_html'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/bundle.rb:482:in `send'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/bundle.rb:482:in `build_entries'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/bundle.rb:452:in `each'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/bundle.rb:452:in `build_entries'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/bundle.rb:493:in `build_entry'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/merb/bundle_controller.rb:108:in `handle_resource'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/lib/sproutcore/merb/bundle_controller.rb:79:in `main'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/controller/abstract_controller.rb:269:in `send'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/controller/abstract_controller.rb:269:in `_call_action'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/controller/abstract_controller.rb:249:in `_dispatch'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/controller/merb_controller.rb:198:in `_dispatch'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/dispatch/dispatcher.rb:76:in `dispatch_action'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/dispatch/dispatcher.rb:76:in `synchronize'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/dispatch/dispatcher.rb:76:in `dispatch_action'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/dispatch/dispatcher.rb:50:in `handle'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/rack/application.rb:7:in `call'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/rack/middleware/static.rb:22:in `call'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/rack/handler/mongrel.rb:72:in `process'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/rack/adapter/mongrel.rb:22:in `start'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/server.rb:53:in `start'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core.rb:91:in `start'
/Library/Ruby/Gems/1.8/gems/sproutcore-0.9.16/bin/sc-server:73
/usr/bin/sc-server:19:in `load'
/usr/bin/sc-server:19
~ Params: {"action"=>"main", "controller"=>"sprout_core_bundle_controller_0"}
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment