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.

ronin-38963 (at lighthouseapp)'s latest activity

Saturday, June 06 2009
2357 Predictable Table Aliases in Joins was updated in Ruby on Rails
  • ronin-38963 (at lighthouseapp)
    ronin-38963 (at lighthouseapp) commented at 11:01 AM

    I still support strongly Steffen's original report. It's easy to misuse the nested hash conditions/joins syntax and think you're doing The Right Thing, until yo...

Saturday, April 25 2009
2357 Predictable Table Aliases in Joins was updated in Ruby on Rails
  • ronin-38963 (at lighthouseapp)
    • Tag changed from activerecord, joins, table_alias to activerecord, joins, named_scope, table_alias
    by ronin-38963 (at lighthouseapp) at 1:50 AM

    This should definitely be addressed. It's a huge issue for named_scope use, as you stated.

Friday, April 24 2009
1167 has_one :through using belongs_to produces incorrect SQL was updated in Ruby on Rails
  • ronin-38963 (at lighthouseapp)
    ronin-38963 (at lighthouseapp) commented at 9:35 PM

    Turns out I had my :joins statement wrong--sorry.

  • ronin-38963 (at lighthouseapp)
    ronin-38963 (at lighthouseapp) commented at 9:24 PM

    I'm having the same problem when I search Baz for Foos with a certain attr using a named scope defined in Baz in ActiveRecord 2.3.

    Baz.with_Foo_attr(attr) yield...

Wednesday, November 26 2008
1479 irregular inflection: drive, drives was updated in Ruby on Rails
  • ronin-38963 (at lighthouseapp)
    ronin-38963 (at lighthouseapp) commented at 9:24 AM

    require 'ActiveSupport' # version 2.2.2 => true 'drives'.singularize => "drife"

  • ronin-38963 (at lighthouseapp)
    ronin-38963 (at lighthouseapp) created the ticket at 9:22 AM

    I encountered an incorrect inflection while using my :drives table. The problem originates from the dwarf->dwarves loaf->loaves rule.

    require 'ActiveSupport' ...