In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...
When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...
When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...
Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...
Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...
When you have files in your .gitignore they won't be considered for changes, but still you might want to...
Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...
The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...
...}. These options should be helpful...
We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...
Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...
For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...
The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
Create a 1 GB file to swap to (we have sufficient space on / on this machine. Use a different partition...
The ipad onscreen keyboard changes position:fixed style to position:static that misplaces those elements and you'll have problems...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
The Ruby on Rails security list archive can be found here: http://groups.google.com/group/rubyonrails-security You can subscribe to this mailing...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
Good article that tells you how to change behavior of certain keys via xmodmap (with the help of exv if...
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...