Skip to content

Category Archives: rails

Pow! Dead-easy rails development servers

The Problem: you’ve got multiple rails projects in development; possibly one or more use subdomains, and you can’t be bothered messing with vhosts and /etc/hosts and <insert extra hassle steps here> just to look at your app in the browser. The Solution: Pow, a zero-configuration Rack server for OSX, by Sam Stephenson over at 37 […]

Filtering spam with akismet and rails

I’ve got a rails site with an active comments section. For a couple of years I’ve been using the recaptcha gem by fellow tampa.rb member Jason Perry, and that’s mostly worked well. Recently we’ve been getting hit by spam from Russia which has been getting past the recaptcha filters. The spammer in question may or […]

Post-deploy notifications on EngineYard Cloud

Post-deploy notifications on Engine Yard cloud I’ve got a project hosted on EngineYard‘s cloud servers, with geographically-dispersed team. The developers are often working on separate feature sets, often deployed independently. As a quality-control and awareness measure we wanted to be notified when a deploy was done. This was pretty easy to set up, and would […]

Why use automated deployment?

I was talking with a developer about their first rails project, the deadline of which was looming. After a quick walk-through of the code I started asking about process stuff — what are you using for tests? Are you using capistrano for deployment? The answers were “I’d like to use tests at some point in […]

upgrading hoptoad: uninitialized constant HoptoadNotifier::Catcher

Dept. of Quick Tips Dept.: If you’re upgrading from an older plugin version of the hoptoad notifier to the 2.2 gem, and you see uninitialized constant HoptoadNotifier::Catcher when you try to script/generate hoptoad, go to application_controller and remove the line: include HoptoadNotifier::Catcher Then run script/generate hoptoad again and all should be well. Oh, and if […]

skeleton rails app starter

I’ve found a few tools that I like to use on all new projects, mostly for the presentation and testing layers. Following the dictum that lazy is good (and I’m far too lazy to make sure that’s the correct usage of ‘dictum’), I’ve created a starter app that has all those tools in place, so […]

Easy Reporting with Ruport and Chronic

One of the five minute lightning talks at a recent tampa.rb meetup:

Testing for URLs with rspec

I’ve become a big fan of rspec, and the idea of testing models, views and controllers independently of each other. View testing has for me tended to get short shrift, though; there’s not typically a lot of code in there, and who cares what it looks like, right? (kidding)I recently changed how authorization and authentication […]