delete_all very slow

Deleting a large set of association records was taking an incredibly long time. Here's why and how to fix it.


Why GoDaddy sucks for Rails hosting

Or, how NOT to choose a hosting service.

I was working on a project recently, and we were deciding on a hosting solution for a new Rails app. After considerable discussion over several days, and weighing the pluses and minuses of various options, the manager one morning opened a $7/mo account on GoDaddy and told us to "run with it".


Replaceable render engines for Formtastic

One of the things I love about Formtastic is the semantic DSL for specifying a form in my code. One of the things that can frustrate me is the resulting DOM that is generated.


rails

SaasRamp Screencast

SaasRamp is an open source Rails plugin which enables subscription billings in your application. This screencast demos SaasRamp and explores the generators and features built into the plugin.


rails

Wal-mart Applicant

I don't know if this has been going around the internet for years or even a fake, but still it's really funny!


musings

iMac disk died

Replaced hard disk, reinstalled everything, restored data, installed better backup solution, went fairly smoothly.


xamp

BaseWithoutTable

The BaseWithoutTable Rails plugin is handy for making models that don't have a corresponding database table. I started using it about a year ago and thought I do a little writeup about it.


rails

Self image

I thought I'd pass along this comic strip which, unfortunately, rings more truth than I care to admit... :)


musings

Show me the response

Using Cucumber, the executable plain-text documentation tool, you may want to see the current page in a scenario. I use a generic "And (show me)" step.


rails | webdev

Oh my, my, my

A technique for handling routes to resources that the current user owns.


rails

Eat Gooey Cookies

How I'm using cookies to communicate non-critical user activity back to the server. My application and this example uses Ruby on Rails with jQuery for client-side javascript, and the jQuery cookie plugin. and JSON .


rails | webdev

Won't Paginate

I had a problem with will_paginate when giving it a page number and per_page settings that are out of range, resulting in an empty table on the page. And here's how I solved it.


rails