Registered: 2009-04-15
Update: about 11 hours ago
Problems: 22
Solutions: 21
References: 9
Problem views: 2512
Unsolved problem views: 143
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#101: detecting whether association loaded in ActiveRecord
Solved!on August 18, 2010, 11:42 PM UTC — from
kueda
( 22 views )
kueda
( 22 views )
Sometimes you want to check if something's loaded before you hit the db.
Tags:
activerecord, Rails
#96: rails tests not getting rolled back
Solved!on May 19, 2010, 11:25 PM UTC — from
kueda
( 58 views )
kueda
( 58 views )
There are a number of reasons this might happen: you have a test, it runs fine individually, but when you run rake test or rake test:units, it fails. This might be because one test is writing to the db and those changes aren't getting rolled back.
#93: inspecting the state of a named_scope
Solved!on May 10, 2010, 09:22 PM UTC — from
kueda
( 56 views )
kueda
( 56 views )
I know named scopes are getting all changed around in Rails 3, but I figured this out a while ago, and then forgot it, came here to find my answer, and realized I never wrote it down.
The problem is that when you're building complex chained scopes its often...
#91: piping stderr and stdout
Solved!on April 21, 2010, 05:58 PM UTC — from
kueda
( 73 views )
kueda
( 73 views )
Well, I think I've already looked this up and forgotten it twice.
Tags:
bash
#89: view readline history in irb
Solved!on April 01, 2010, 06:53 PM UTC — from
kueda
( 126 views )
kueda
( 126 views )
I wanted to view a log of all the lines I'd written in an IRB session, but didn't see a simple equivalent of bash's "history" command.
