SelfSolved

Record, recall, share

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

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   148c663fd665c53518538e093ce3c2ab_small 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
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    ( 760 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    ( 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...
Tags: ruby, passenger, mod_rails, Rails
1 solution | 0 references     Add Solution | Add Reference    

#55: accessing locals hash within an ActionView partial

Solved!
on June 19, 2009, 05:01 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 1,207 views )
How do you access the hash of locals you pass into a partial from within that partial?
Tags: ruby, ActionView, templates, Rails
1 solution | 0 references     Add Solution | Add Reference    

#53: slicing rexml collections

Solved!
on June 11, 2009, 10:38 PM UTC   —   from   148c663fd665c53518538e093ce3c2ab_small kueda    ( 647 views )
REXML is dumb and doesn't implement normal Ruby enumerable slicing with ranges.
Tags: ruby, xml, rexml
1 solution | 1 reference     Add Solution | Add Reference    
« Previous 1 2 3 4 5 Next »
  • About Us
  • Contact
  • Terms of Service
  • Privacy
  • Feedback
  • © 2009-2010 All rights reserved