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.

Avand's latest activity

Monday, October 04 2010
5726 Can't extend Date in Rails 3 with Ruby 1.9.2-p0 was updated in Ruby on Rails
  • Avand
    Avand commented at 9:09 PM

    Either of those solutions will work for my purposes. Thanks @Henrik and @Benoit.

    At a higher level though, it would seem that what I did first, shouldn't have b...

Friday, October 01 2010
5726 Can't extend Date in Rails 3 with Ruby 1.9.2-p0 was updated in Ruby on Rails
  • Avand
    Avand commented at 6:02 AM

    Not the easiest thing to paste, but here it is:

    LOAD PATH: ["/Users/avand/.rvm/gems/ruby-1.9.2-p0/gems/haml-3.0.18/vendor/fssm/lib", "/Users/avand/Git/sqoot/li...
Tuesday, September 28 2010
5726 Can't extend Date in Rails 3 with Ruby 1.9.2-p0 was updated in Ruby on Rails
  • Avand
    Avand commented at 8:23 PM

    Amazingly, if I change the file name to date_extensions.rb it works. Odd.

  • Avand
    Avand created the ticket at 7:58 PM

    In my Rails 3 app I was able to add a file in lib called date.rb with the following contents:

    class Date
      def id
        self.to_s
      end
      
      def self.find(id)
      ...