#rails

Configuring AWS' CloudFront to serve the fonts for your Rails app can be baffling, but it's pretty easy once you know how!
The following technique requires high test coverage. Where does the default_scope get used? We can print a stack trace whenever the default_scope is used.
A post to the Ruby on Rails security list yesterday revealed a pretty serious vulnerability in ActionController's handling of implicit controller actions. (You know, when a controller doesn't have a certain method defined but it's successfully...
TL;DR: Add our utf8-cleaner Ruby gem to your Rails app and kiss request encoding errors goodbye! Our Rails apps send us error reports by email every time a request results in a 500 error. Sometimes these are legitimate bugs, and we can roll...
Several members of our team recently participated in the annual Rails Rumble, a programming competition in which teams made up of 1-4 people have 48 hours to build a Ruby on Rails-based web application. After a weekend of...
If you're using a CDN to serve your static assets, your webfonts may break if you don't provide the correct CORS headers. Update: be sure to turn...
I was quite confused when I saw lines like this in controllers that I was working on: - Sign in user? Is it that easy? Do I just type what I want in plain text and the computer will know what I’m talking about? Well, no, of course not...but as someone new to the system, these sorts of conventions can be really confusing. If you find yourself in this position, then you are probably coming from another language where class inheritance worked differently from Ruby.  -
I walked up to the door, not quite knowing what to expect. I had rushed over there from my co-working space to participate in the RailsBridge Friday night install-fest. I buzzed and was let in. RailsBridge started a few years ago in the wake of a...
During our Saturday Open Source Hackathon, I was working on trying to fix a bug in Rails' update_all() method. Following the Contributing to Rails guide, I got set up to run ActiveRecord's tests on all of the major databases used with Rails. When...