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.

joahking's latest activity

Friday, January 23 2009
1791 AR validates_uniqueness_of floats and find_by_FLOAT_FIELD was created in Ruby on Rails
  • joahking
    joahking created the ticket at 12:01 PM

    if you try this:

    
    model WithFloat < ActiveRecord::Base
    validates_uniqueness_of :lat
    end
    

    right now fails (at least mysql, which is my itch!), mainly becaus...

Wednesday, July 30 2008
725 ActiveRecord UTC support on find with :conditions was created in Ruby on Rails
  • joahking
    joahking created the ticket at 10:22 AM

    ActiveRecord caveat to care about regarding UTC conversions:

    # some initializations
    >> time_str = "2008-07-30T09:44:28+02:00"
    >> time = Time.parse time_str
    
    ...