Skip to content

Instantly share code, notes, and snippets.

@DarkFox
DarkFox / index.html.erb
Created May 27, 2011 12:21
Self-contained demonstration of IE9 fail. Uses Prototype-UJS
<%= form_tag test_ie_path(0), :method => :put, :remote => true do %>
<%= submit_tag 'Submit' %>
<% end %>
self.balances.joins("INNER JOIN events ON events.balance_id = id").where(["events.state != ? AND events.active IS TRUE", 'closed']).sum(:balance_sum)
Yields:
SELECT SUM(balance_sum) AS sum_id FROM `balances` INNER JOIN `events` ON `balances`.id = `events`.balance_id INNER JOIN events ON events.balance_id = id WHERE ((`events`.event_maker_id = 8)) AND (events.state != 'closed' AND events.active IS TRUE)
$ rails s
/Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.bundle: dlopen(/Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.bundle, 9): no suitable image found. Did find: (LoadError)
/Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.bundle
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
from
$ rails s
/Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/roxml-3.1.6/lib/roxml/xml.rb:11: Could not load a parser. Tried nokogiri and libxml (RuntimeError)
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `polyglot_original_require'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/martin/.rvm/gems/ruby-1.8.7-p174@rails303/gems/activesupport-3.
#### Controller
# GET /urls/new
# GET /urls/new.xml
def new
@url = Url.new
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @url }
end
I/BootReceiver( 2805): Got intent with action android.intent.action.MEDIA_SCANNER_FINISHED
E/DiskCache( 2805): Unable to create cache directory /sdcard/Android/data/com.cooliris.media/cache/local-album-cache
E/DiskCache( 2805): Unable to create cache directory /sdcard/Android/data/com.cooliris.media/cache/local-meta-cache
E/DiskCache( 2805): Unable to create cache directory /sdcard/Android/data/com.cooliris.media/cache/local-skip-cache
E/DiskCache( 2805): Unable to create cache directory /sdcard/Android/data/com.cooliris.media/cache/local-video-skip-cache
D/dalvikvm( 2805): GC freed 7649 objects / 437088 bytes in 175ms
E/DiskCache( 2805): Unable to create or open the chunk file /sdcard/Android/data/com.cooliris.media/cache/local-album-cachechunk_0
E/CacheService( 2805): Error writing dirty index to cache.
I/CacheService( 2805): Refreshing cache.
E/DiskCache( 2805): Unable to create or open the chunk file /sdcard/Android/data/com.cooliris.media/cache/local-album-cachechunk_0