Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Phillip Koebbe's latest activity

Friday, March 26 2010
2283 Unnecessary exception raised in AS::Dependencies.load_missing_constant was updated in Ruby on Rails
  • Phillip Koebbe
    Phillip Koebbe commented at 3:22 PM

    Thanks, Andrew. Sorry to have added noise to the conversation.

  • Phillip Koebbe
    Phillip Koebbe commented at 2:06 PM

    Andrew,

    It was 'Web is not missing constant User!'. I assumed it was related, but didn't know if the additional information of cache_classes might be helpful.

    O...

Thursday, March 25 2010
2283 Unnecessary exception raised in AS::Dependencies.load_missing_constant was updated in Ruby on Rails
  • Phillip Koebbe
    Phillip Koebbe commented at 10:27 PM

    I can't say that I'm following all of this very clearly, but I wanted to add something to the discussion just in case it might be useful in some way. I read thr...

Tuesday, February 23 2010
4026 Rubygems 1.3.6 warning in Rails 2.3.5 was updated in Ruby on Rails
  • Phillip Koebbe
    Phillip Koebbe commented at 1:35 PM

    Oh, I don't either. I was just providing a way to work around the deprecation warning. It's quite obnoxious when running specs.

    The solution is to do just what ...

Monday, February 22 2010
4026 Rubygems 1.3.6 warning in Rails 2.3.5 was updated in Ruby on Rails
  • Phillip Koebbe
    Phillip Koebbe commented at 8:44 PM

    Me, too.

    I worked around it by adding

    if Gem::VERSION >= "1.3.6"
        module Rails
            class GemDependency
                def requirement
                    r = s...
Wednesday, October 08 2008
1181 AR find producing "= NULL" when it should be "IS NULL" was updated in Ruby on Rails
  • Phillip Koebbe
    Phillip Koebbe commented at 9:17 PM

    For my own curiosity (or pain, as the case may be), I couldn't let go of this, so I twiddled around until I came up with:

    
    def replace_named_bind_variables(st...
Tuesday, October 07 2008
1181 AR find producing "= NULL" when it should be "IS NULL" was updated in Ruby on Rails
  • Phillip Koebbe
    Phillip Koebbe commented at 4:18 PM

    For posterity's sake:

    Digging into it, I think I understand the difficulty. The method in question appears to be

    
            def replace_named_bind_variables(sta...
  • Phillip Koebbe
    Phillip Koebbe commented at 4:00 PM

    Okie dokie. Thanks for the consideration.

    Peace.

  • Phillip Koebbe
    Phillip Koebbe commented at 3:36 PM

    Really? But this is just plain wrong SQL. The expression "= NULL" will always fail as nothing is equal to NULL.

    A couple of years ago, an enhancement was made t...

  • Phillip Koebbe
    Phillip Koebbe created the ticket at 12:06 AM
    
    Person.find(:first, :conditions => ['id = :id', {:id => nil}])
    

    produces

    
    SELECT * FROM "people" WHERE (id = NULL) LIMIT 1
    

    when it should produce

    
    SELECT ...