Registered: 2009-04-15
Update: over 5 years ago
Problems: 25
Solutions: 24
References: 9
Problem views: 28944
Unsolved problem views: 1310
Ken-ichi
kueda
User
Website: http://inaturalist.org
Location: Oakland, CA
I am the hand of doom. All code withers at my buggy touch.
Recent problems
Atom Feed#63: upgrading to Rails 2.3 yields ArgumentError for dynamic finders
Solved!on August 21, 2009, 09:37 PM UTC — from kueda
( 1,272 views )
Doing something like Post.find_by_title('something') yields something like:
ArgumentError in WelcomeController#index
wrong number of arguments (2 for 1)
Application Trace | Framework Trace | Full Trace
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3...
Tags:
rails upgrading 2.3
#58: reverting a single svn revision
Solved!on July 02, 2009, 05:30 PM UTC — from kueda
( 760 views )
How have I gone this long without know how to do this...
#56: Passenger can't find a shared module in Rails
Solved!on June 23, 2009, 08:30 PM UTC — from kueda
( 750 views )
I recently put some shared code from a Rails app into a module in app/models/shared/sweepers_module.rb. The module itself was called Shared::Sweepers. I included it in some sweeper classes, and everything worked fine in Mongrel. In Passenger, though, I got...
#55: accessing locals hash within an ActionView partial
Solved!on June 19, 2009, 05:01 PM UTC — from kueda
( 1,207 views )
How do you access the hash of locals you pass into a partial from within that partial?
#53: slicing rexml collections
Solved!on June 11, 2009, 10:38 PM UTC — from kueda
( 647 views )
REXML is dumb and doesn't implement normal Ruby enumerable slicing with ranges.