Articles tagged with activerecord

  1. ActiveRecord and SELECT DISTINCT

    Posted on in Programming

    Blue Cup 1 (photo by woodsy)I'm writing this post for two reasons:

    1. For some reason, I couldn't find a lot of information on ActiveRecord and SELECT DISTINCT().
    2. I'm hoping some Ruby / ActiveRecord guru will stumble across this and provide a better solution.

    Recently, I was working on a project written in Ruby with ActiveRecord that …

  2. Logging Active Record Queries to a File

    Posted on in Programming

    Grapefruit Glory (photo by AnnaMaciel)I was recently helping a developer with some SQL optimizations in Ruby. The developer was using Active Record, and (until now) my Active Record experience has been pretty minimal.

    One thing that was really driving me bonkers was how to get Active Record to print out the queries it was …

Slaptijack's Koding Kraken