Ruby

Ruby language fundamentals, quirks, and ecosystem tools beyond the Rails framework.

Catching Rails Credential Drift Between Environments

Rails ships no check that your credential files declare the same keys. We built credential_parity to catch the drift before it reaches production.

rails ruby open-source

EncryptedConfiguration#key? Missing Before Rails 7.1

delegate_missing_to turns a missing predicate into a confusing ArgumentError, not a NoMethodError.

rails ruby gotchas

Requiring an ActiveSupport Leaf File Breaks on Rails 7.1

require 'active_support/x' alone raises a deprecator NoMethodError unless the parent library loads first.

rails ruby gotchas

Building a Pluggable Adapter Architecture in Ruby

How to design a gem with zero hard dependencies and user-selectable backends.

ruby docpdf open-source

Testing a Ruby Gem Across Multiple Adapter Combinations

Using Appraisal to test every combination of optional dependencies.

ruby testing

Document Conversion on Heroku

Getting LibreOffice and ImageMagick working for PDF conversion on Heroku.

ruby heroku docpdf

Introducing DocPDF

A Ruby gem for document-to-PDF conversion and watermarking, with zero hard dependencies.

ruby open-source docpdf

Jekyll Presentation at Ruby AZ

A presentation on the Jekyll static site generator from a recent Phoenix Ruby meetup.

ruby events community

Arizona's First Ruby Conference - SunnyConf 2010

SunnyConf 2010 is Arizona's first Ruby conference. With a great lineup of speakers, lightning talks and hacking, you won't want to miss it!

events ruby community

Honeypot Captchas for Rails

A simple, unobtrusive way to try to combat automated form spam.

rails ruby open-source

Fixing Multipart Uploads in Rack for Ruby 1.9

Patch your Rack installation after seeing an 'invalid byte sequence in US-ASCII' error.

ruby rails how-to

Using Named Scopes in a Rails Plugin

After extracting common functionality with named scopes into a Rails plugin, I was seeing some strange behavior. I describe the cause and solution.

rails ruby how-to

Error after upgrading SliceHost

Fixing the INLINEDIR/HOME TemplateError that appears after a SliceHost upgrade

ops ruby how-to

TwitterBot Gem Released

Announcing a Ruby gem for accessing Twitter via XMPP, plus the TwitterProps app built on it

ruby code

GoRuCo 2008 Wrap-up

Highlights from the Gotham Ruby Conference, including story-driven development and code quality talks

events ruby code

GoRuCo 2008

Heading to New York for the Gotham Ruby Conference

events ruby

The Tip of the Ruby #1

Understanding the difference between or and || operator precedence in Ruby

ruby how-to

Ruby Time Limitations

Ruby's Time class has platform-dependent minimum values -- use Date or DateTime instead

ruby how-to