Articles tagged with ruby

  1. Apache, SSL, Rails and a Broken Redirect

    Posted on in Programming

    steam locomotive (photo by benedeki)If you are using Apache and <acronym title="Secure Sockets Layer">SSL</acronym> as a proxy front-end for your Ruby on Rails application, you might have a problem with redirects if the backend server (Mongrel, for example) does not use SSL.

    In a nutshell, you'll discover that redirects are sent …

  2. 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 …

  3. Installing RubyGems with MacPorts

    Posted on in Programming

    IM_OK (photo by danzo08)Quick note.

    I recently needed to install a few RubyGems on my Mac OS X 10.4 (Tiger) development system. I use MacPorts to keep my system consistent, but MacPorts was causing the problem. Here's a look at the output I was getting while trying to install Active Support.

    $ sudo …
  4. 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