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.

nerdrew's latest activity

Friday, September 19 2008
358 find with a has_many condition fails was updated in Ruby on Rails
  • nerdrew
    nerdrew commented at 3:22 AM

    I wish there was a way to edit comments...

    Here it is again.

    
    
    class <<ActiveRecord::Base
    
      private
    
      def find_associated_records(ids, reflection, preload_o...
  • nerdrew
    nerdrew commented at 3:21 AM

    Can someone test this for me? I have some custom ActiveRecord improvements (nested condition hashes and includes), but it seems to work for me.

    @@@ruby

    class <<...

Thursday, September 18 2008
358 find with a has_many condition fails was updated in Ruby on Rails
  • nerdrew
    nerdrew commented at 8:03 PM

    Why is this stale now? I'm still seeing the same bug (I think) in edge. It could be that I'm using the conditions hash wrong, but I don't know how else I'd do i...

Wednesday, August 20 2008
335 Improve conditions hash to support complex queries was updated in Ruby on Rails
  • nerdrew
    nerdrew commented at 4:25 PM

    It shows up on the right side above the list of people watching this ticket for me. If it didn't go through I can resend it. ar_conditions.rb

  • nerdrew
    nerdrew commented at 12:45 AM

    I've already done something so I can use the conditions as I've described them. I've attached the relevant part of my plugin for this.

Tuesday, June 10 2008
335 Improve conditions hash to support complex queries was updated in Ruby on Rails
  • nerdrew
    nerdrew commented at 11:21 PM

    Another thing I'd like to see in active record conditions hashes is the ability to use conditions on included tables. Also I'd like these tables to be automati...

  • nerdrew
    nerdrew commented at 10:48 PM

    I would really like to see something like this in active record.

  • nerdrew
    nerdrew commented at 10:46 PM

    Another approach would be:

    Person.find(:all, :conditions => { :age.gt => 30, :name.like => "%a%", :or => { :place => 'Boca', :occupation => 'Chef'} }) #=> peo...
Saturday, June 07 2008
358 find with a has_many condition fails was updated in Ruby on Rails
  • nerdrew
    nerdrew commented at 1:11 AM

    I can't attach files without an error, so I've uploaded it here:

    http://www.nerdputer.com/test_ra...

  • nerdrew
    nerdrew created the ticket at 1:06 AM

    Given a model with a has_many that has a condition, a find with this has_many association included will fail.

    class Company < ActiveRecord::Base
      has_many(
    ...