Category Archives: Rails

Swap your Rails stack traces for a REPL

The Developer tools I really love are those that help me reduce the time that elapses between a bug occurring and a bug being fixed. One of the more obvious types of bug is a top-level¬†unhandled exception. The message “I’m … Continue reading

Posted in Rails, Tools | Leave a comment

Get productive: hacking Sublime Text 2 for faster rails/project navigation

Programmer productivity stems from the ability to easily and efficiently navigate, create and edit the code you need to work with. To this end, it’s incredibly important to pay attention to the efficiency of your own daily workflow. If you’re … Continue reading

Posted in Rails, Tools | 4 Comments

How to make Chrome understand the Sass/SCSS in your rails app

When you open the Chrome web inspector, you can browse to the styles that are being applied to your elements. It’s great. Unfortunately, if you’re using a framework like LESS or Sass, then by default Chrome will reference the CSS … Continue reading

Posted in Chrome, CSS, Rails, Tools | 43 Comments

Using facebook connect (only) to authorize users with authlogic

I’ve been working on our semi-stealthy new webapp for the last couple of months and I’ve been putting off fixing a bug for ages because it was so damned weird. We want users to be able to sign-up with facebook … Continue reading

Posted in Rails | Leave a comment

mig_constraints is not compatible with rails 2.3

Although it’s old, mig_constraints has sat in my rails plugin directory for a while now because it adds much needed foreign key support to ActiveRecord. I’m on of those crazy guys that thinks a relational database should maintain relational integrity, … Continue reading

Posted in Rails | Tagged , , | 3 Comments

Setting up a kick-ass rails server on Ubuntu 9.04 (Jaunty)

I recently created a new slicehost and thought I’d try the latest Ubuntu release with it. Unlike brightbox hosting, you only get a plain boring ubuntu installation out of the box on slicehost (and various other VPS-based hosting services). A … Continue reading

Posted in Rails | 1 Comment

Nokogiri fails to work on Solaris (11), but fix it like this!

I’ll have a better fix up in the near future, but for now, the ruby gem “Nokogiri” crashed out on me on Joyent’s Solaris platform. Its error was a little cryptic¬†unless you’re familiar with libc. I can’t reproduce it here … Continue reading

Posted in Rails | Leave a comment