This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ejb-mbp2:~ ebryn$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.3.7 | |
- RUBY VERSION: 1.8.7 (2010-09-23 patchlevel 174) [x86_64-apple-darwin10.4.0] | |
- INSTALLATION DIRECTORY: /Users/ebryn/.rvm/gems/rbx-head | |
- RUBYGEMS PREFIX: /Users/ebryn/.rvm/rubies/rbx-head | |
- RUBY EXECUTABLE: /Users/ebryn/.rvm/rubies/rbx-head/bin/rbx | |
- EXECUTABLE DIRECTORY: /Users/ebryn/.rvm/gems/rbx-head/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ejb-mbp2:~ ebryn$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.3.7 | |
- RUBY VERSION: 1.8.7 (2010-09-23 patchlevel 174) [x86_64-apple-darwin10.4.0] | |
- INSTALLATION DIRECTORY: /Users/ebryn/.rvm/gems/rbx-head | |
- RUBYGEMS PREFIX: /Users/ebryn/.rvm/rubies/rbx-head | |
- RUBY EXECUTABLE: /Users/ebryn/.rvm/rubies/rbx-head/bin/rbx | |
- EXECUTABLE DIRECTORY: /Users/ebryn/.rvm/gems/rbx-head/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ejb-mbp2:Gauge ebryn$ bundle config | |
Settings are listed in order of priority. The top value will be used. | |
disable_shared_gems | |
Set for your local app (/Users/ebryn/Dev/Gauge/.bundle/config): "1" | |
path | |
Set via BUNDLE_PATH: "/Users/ebryn/.rvm/gems/rbx-head" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ejb-mbp2:Gauge ebryn$ rails s -u | |
=> Booting WEBrick | |
=> Rails 3.0.1 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
You did not specify how you would like Rails to report deprecation notices for your development environment, please set config.active_support.deprecation to :log at config/environments/development.rb | |
| Breakpoint: Rails::Rack::Debugger#initialize(app) at /Users/ebryn/.rvm/gems/rbx-head/gems/railties-3.0.1/lib/rails/rack/debugger.rb:12 (34) | |
| 12: ::Debugger.start | |
debug> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Company.all.each do |company| | |
begin | |
company.description = company.xml_document.description # could have bad characters which cause SQL error | |
company.save! | |
rescue => e | |
puts "FAIL! #{company.name}" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SC.TextArea = SC.View.extend({ | |
tagName: 'textarea', | |
value: null, | |
placeholder: null, | |
renderBuffer: function(tagName) { | |
var buffer = SC.RenderBuffer(tagName); | |
if (this.get('placeholder')) { | |
buffer.attr('placeholder', this.get('placeholder')); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp.ParagraphTemplateView = SC.TemplateView.extend({tagName: 'p'}); | |
MyApp.TemplateCollectionView = SC.TemplateCollectionView.extend({ | |
itemView: 'MyApp.ParagraphTemplateView' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListviewTest.testController = SC.ArrayController.create({ | |
content: [ { 'name': 'Item 1', 'description': 'This is item 1' }, | |
{ 'name': 'Item 2', 'description': 'This is item 2' } ], | |
}); | |
ListviewTest.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tbody tabindex="-1" id="sc201" class=""> | |
<tr tabindex="-1" id="sc210" class="" style=""> | |
<td tabindex="-1" id="sc214" class="" style=""><span tabindex="-1" id="sc216" class="" style="">something</span></td> | |
<td tabindex="-1" id="sc220" class="" style=""><span tabindex="-1" id="sc221" class="" style="">new</span></td> | |
</tr> | |
<tr tabindex="-1" id="sc225" class="" style=""> | |
<td tabindex="-1" id="sc228" class="" style=""><span tabindex="-1" id="sc229" class="" style="">something</span></td> | |
<td tabindex="-1" id="sc232" class="" style=""><span tabindex="-1" id="sc233" class="" style="">else</span></td> | |
</tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/x-handlebars" data-template-name="blog-post"> | |
{{view Blog.EditFormView contentBinding="content" classBinding="content.isEditing:editing-form"}} | |
{{view Blog.PostDisplayView contentBinding="content" classBinding="content.isEditing:editing-display"}} | |
{{#if showComments}} | |
<div id="disqus_thread"></div> | |
{{#view contentBinding="content" tagName="script" type="text/javascript"}} | |
var disqus_shortname = 'ideafreemonoid'; | |
var disqus_identifier = '{{content.slug}}'; | |
(function() { | |
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; |