Last week I lost several productive hours resetting my ‘insecure’ password on several websites due to a security breach at a website I haven’t used in more than a decade, if you’ve ever used that site, you’d be well advised to ch...
Read more »
The Rails Way
Users and Passwords
Do it Later With Delayed Job.
As I mentioned in the post on managing file uploads, the most common cause of an unresponsive rails application is having some long-running requests consuming all your rails processes. For managing uploads and downloads you can off-load t...
Read more »
Taking Things Too Far: REST
I’m going to put up a few posts based on a talk I gave at RailsConf ‘09 in Vegas and RailsWayCon in Berlin. Sorry for the delay in updating but I wanted to deliver the talks before posting here.There’s...
Read more »
Updates
Just a few quick updates about what’s going on around here.SponsorshipNew Relic have generously been sponsoring this site for a few months now. I’ve been a user of their RPM product for a while now and recommend it to all my...
Read more »
Uploading Files
Anyone who’s built a rails application that deals with large file uploads probably has a few horror stories to tell about it. While some people love to overstate the issues for their own purposes, it’s still something that can be quit...
Read more »
Controller Inheritance
Just a brief interlude from the File Management series while I sort out some time to do some benchmarking.A common pattern I see in submissions and client-applications is repetitive declarations in controllers. There’s a neat and si...
Read more »
Storing Your Files
This is the second article in my series on file management, the third article will cover the challenges of handling uploads then we should be able to move on to some more advanced topics.The second problem you’ll face when building a...
Read more »
File Downloads Done Right
Getting your file downloads right is one of the most important parts of your File Management functionality. A poorly implemented download function can make your application painful to use, not just for downloaders, but for everyone else t...
Read more »
File Management
One of the most common features for web applications I’ve built over the last 4 years doing rails is file management. Users download file attachments in almost every web application I use. Thankfully rails has a really capable suite of...
Read more »
Requests Per Second
One of the most harmful things about people discussing the performance of web applications is the key metric that we use. Requests per second seems like the obvious metric to use, but it has several insidious characteristics that poison t...
Read more »