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.

Ari Epstein's latest activity

Sunday, August 30 2009
3117 TimeWithZone comparison fails for distinct instances of same time was created in Ruby on Rails
  • Ari Epstein
    Ari Epstein created the ticket at 7:55 PM

    Let's say I have a model "Role" with timestamps and a string name attribute. I want to do some time comparisons. Here's the expected versus actual that I see:

    E...

Tuesday, August 18 2009
2815 nested models: build should directly assign the parent was updated in Ruby on Rails
  • Ari Epstein
    Ari Epstein commented at 8:23 PM

    The following workaround has been fine for me:

    class Person < ActiveRecord::Base
    
      has_many :children
      accepts_nested_attributes_for :children
      before_valid...
Monday, July 20 2009
2925 DateTime:to_s(:db) does not convert to UTC was created in Ruby on Rails
  • Ari Epstein
    Ari Epstein created the ticket at 5:31 PM

    ActiveRecord saves datetime fields in UTC, but in prepared statements (for select queries), the quote method does not perform the same conversion. So, for examp...

Tuesday, March 03 2009
2121 "warning: default 'to_a' will be obsolete" from method_missing in association... was created in Ruby on Rails
  • Ari Epstein
    Ari Epstein created the ticket at 8:14 PM

    I get dozens of warnings like this every time I save since I switch from Rails 1 to Rails 2. I've done lots of cleaning up and debugging, but so far have not ev...

Sunday, March 01 2009
2092 routing seems broken in 2.2.2 for applications using RewriteBase was updated in Ruby on Rails
  • Ari Epstein
    Ari Epstein commented at 2:00 PM

    I found the solution, to add the following to environment:

    config.action_controller.relative_url_root = '/app'

Friday, February 27 2009
2092 routing seems broken in 2.2.2 for applications using RewriteBase was created in Ruby on Rails
  • Ari Epstein
    Ari Epstein created the ticket at 6:58 AM

    I have an application that I recently migrated from Rails 1 to the latest 2.2.2. In the Rails 1 version I was able to serve it under an aliased subdirectory usi...