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.

There was a problem

You must be a member of this account.

Jason May's latest activity

Monday, August 30 2010
5500 arel_table.as("xxx") throws nil was updated in Ruby on Rails
  • Jason May
    Jason May commented at 8:06 PM

    Quick fix: adding the line:

    @options = {}

    at line 35 in table.rb.

  • Jason May
    Jason May created the ticket at 8:01 PM

    Rails 3.0.0 general release.

    Given an ActiveRecord class Foo:

    Foo.arel_table.as("bar")

    throws

    NoMethodError: undefined method merge' for nil:NilClass

        from ...
Tuesday, March 30 2010
4235 eager loading of associations not working in rails 3? was updated in Ruby on Rails
  • Jason May
    Jason May commented at 1:31 AM

    Hi Emilio-

    I think your example should have comments.title in the conditions instead of post.title.

    Is it possible to express your example using Arel-style synt...

Monday, March 22 2010
4235 eager loading of associations not working in rails 3? was updated in Ruby on Rails
  • Jason May
    Jason May commented at 5:53 PM

    I see...

    I had thought that includes(:bar) would generate an OUTER JOIN clause in the original SQL, rather than generating a second SELECT with an IN clause, i....

Saturday, March 20 2010
4235 eager loading of associations not working in rails 3? was updated in Ruby on Rails
  • Jason May
    • Tag changed from arel activerecord bug rails3, eager, eager_loading to activerecord 3.0, rails 3, activerecord, arel, eager, eager_loading
    by Jason May at 4:18 PM
  • Jason May
    Jason May commented at 4:18 PM
Friday, March 19 2010
4235 eager loading of associations not working in rails 3? was created in Ruby on Rails
  • Jason May
    Jason May created the ticket at 6:15 PM

    Foo.joins(:bar).includes(:bar) does not appear to generate the correct SQL.

    Foo.joins(:bar).includes(:bar).to_sql gives me

    SELECT "foo".* FROM "foo" INNER JOIN ...