Tag Archives: rails

Vlad 2.0 dies when you try to use :scm => :git

Presently upgrading to Snow Leopard, and this kicked me in the teeth. The latest Vlad gem is 2.0, but the documentation is still, um, rough (that’s being generous). $ script/console Loading development environment (Rails 2.3.2) default formats are encoded in ISO-8859-1 >> require ‘vlad’ => ["Vlad"] >> Vlad.load :app => :passenger, :scm => :git MissingSourceFile: [...]

Leave a comment Continue Reading →

Grep Multiple Words

There might be an easier way to do this without escaping the regex to grep, but for my small brain to remember later on – I wanted to grep the output of rake routes and search for two strings (logical OR): rake routes | grep “\(give\|gift\)”

Leave a comment Continue Reading →

If You Can Read This…

…then the DNS has propagated, and all is good with the world. Well, maybe not the whole ‘good with the world’ thing, but definitely the DNS has propagated, which means you’re viewing the site on it’s shiny new Linode  VPS running on mod_rails (AKA: Phusion Passenger). Media Temple was a great host, but something changed [...]

Leave a comment Continue Reading →

Paperclip Problems

I’ve started to use Paperclip on a pet project I’m working on (a recommendation from Josh Owens), and the API is great, except for the fact that I couldn’t get it to work. Files were being uploaded fine, but my thumbnail and other variations were not generating. The documentation says that the whiny_thumbnails option defaults [...]

Leave a comment Continue Reading →

Capistrano Upgrade Problem

A few days ago I ran a sudo gem update and unwittingly got a Capistrano 2.0.0 upgrade that broke my ability to deploy a bunch of existing Rails apps. cap deploythe task `deploy’ does not exist Hmm. That sucks. Nick to the rescue. Here’s the culprit: gem list | egrep -v “^( |$)” ……capistrano (2.0.0, [...]

Leave a comment Continue Reading →

Ruby on Rails and XML (a little late)

I wrote this article for IBM developerWorks a while back, but never ended up blogging about it. So at any rate, here it is: Ruby on Rails and XML – for better or for worse.

Leave a comment Continue Reading →