Tag Archives: irb

Ruby Enumerable#partition

More than once in the past I would have used this, had I known it was there. Often I am consumed by the task of getting the job done and less focussed on keeping up to date with the documentation. … Continue reading

Posted in Programming, Ruby | Tagged , | Leave a comment

Show ActiveRecord SQL in Rails 3 Console

If you want to show sql in your console for Active Record, then you may have run across the past Rails Recipes book or similar formulas for Rails < v3.0.  I just tweaked a formula I saw in that book … Continue reading

Posted in Programming, Rails, Ruby | Tagged , , , , , | Leave a comment