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.
Deleting a large set of association records was taking an incredibly long time. Here's why and how to fix it.
Wanting to add a CAPTCHA for my Contact form, I was challenged by a number of technical and aesthetic issues.
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".
Reports of my evaporation are greatly exaggerated.
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.
I ran into a few snags upgrading ReviewRamp from Rails 2.3.2 to 2.3.5
jqGrid is a high quality grid plug-in for jQuery. I made a couple of tweaks so it supports RESTful requests and Rails routes.
My presentation at PodCamp NH 2009 at the New Hampton School, New Hampton, NH (Nov 8)
My specs started failing, I traced the problem to the acts_as_paranoid plugin
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.
Using some generators and a behavior driven approach, we create a simple Rails application with one resource and user authentication.
I don't know if this has been going around the internet for years or even a fake, but still it's really funny!
This week I released a useful little utility as a service for HughesNet satellite internet customers.
Replaced hard disk, reinstalled everything, restored data, installed better backup solution, went fairly smoothly.
Hurray! We finally released the public Beta version of ReviewRamp, today!
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.
A helper that's been missing from Rails
I thought I'd pass along this comic strip which, unfortunately, rings more truth than I care to admit... :)
Last night I presented at the monthly NH Ruby users group meeting.
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.
A technique for handling routes to resources that the current user owns.
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 .
I found myself frequently doing something like "table_#{id}", so i added a little string method that lets me say 'table'._(id)
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.