SelfSolved

Record, recall, share

  • Log in
  • Sign up
  • About
  • What's New
  • Home
  • All Problems
  • SelfSolvers
148c663fd665c53518538e093ce3c2ab_thumb
402 XP

Registered: 2009-04-15

Update: 2 months ago

Problems: 17

Solutions: 16

References: 8

Problem views: 711

Unsolved problem views: 40

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

#81: associated STI subclasses not loading in dev

Solved!
on January 08, 2010, 06:47 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 26 views )
Let's say you have class Chili < ActiveRecord::Base has_many :beans end class Bean < ActiveRecord::Base; end class Pinto < Bean; end Now, let's say you have one chili record that's associated with one pinto (it's a sad chili). If you do this...
Tags: ruby, STI, Rails
1 solution | 0 references     Add Solution | Add Reference    

#64: facebook feed update complains about img objects

Solved!
on August 27, 2009, 06:20 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 76 views )
When posting an update to Facebook through their API, were occasionally getting Application response error img objects must have valid 'src' and 'href' attributes. You can see this because you are one of the developers of the app.
Tags: facebook, API
1 solution | 0 references     Add Solution | Add Reference    

#63: upgrading to Rails 2.3 yields ArgumentError for dynamic finders

Solved!
on August 21, 2009, 09:37 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 72 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
1 solution | 1 reference     Add Solution | Add Reference    

#58: reverting a single svn revision

Solved!
on July 02, 2009, 05:30 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 49 views )
How have I gone this long without know how to do this...
Tags: scm, SVN
1 solution | 1 reference     Add Solution | Add Reference    

#56: Passenger can't find a shared module in Rails

Solved!
on June 23, 2009, 08:30 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 49 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...
Tags: ruby, passenger, mod_rails, Rails
1 solution | 0 references     Add Solution | Add Reference    
« Previous 1 2 3 4 Next »
  • About Us
  • Contact
  • Terms of Service
  • Privacy
  • Feedback
  • © 2009-2010 All rights reserved
  • Hosted on Linode