Skip to content

Instantly share code, notes, and snippets.

// ==========================================================================
// Admin.AppController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
<% view :about, :pane => :dialog, :width => 300, :bind=>{:visible => 'ScAdmin.appController.isAboutVisible'} do %>
<h1>Sprouted Note</h1>
version: 0.6.1
<hr>
<a href=http://www.maloninc.com/cgi-bin/fswiki/wiki.cgi?page=SproutedNote target=_blank>SproutedNote Wiki</a>
<div> &copy;2008 <a href=mailto:hiroyuki@maloninc.com>Malon,Inc</a> All Rights Reserved. </div>
<div class="buttons">
<%= button_view :outlet => true, :title => 'Close',
@ma11hew28
ma11hew28 / NoMethodError
Created August 16, 2008 15:11
undefined method `capture_haml' for SproutCore::ViewHelperSupport:Module - (NoMethodError)
#<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'
@ma11hew28
ma11hew28 / body.haml
Created August 15, 2008 22:14
This is the default sproutcore body.rhtml file translated from erb to haml.
- content_for('body') do
.sc-welcome
%img{:class => "logo", :src => static_url('images/sproutcore-logo')}
.message
%h1 Welcome!
%h3 You are now running SproutCore.
.sticky-note
%p Things to do:
%ul
%li<