Before Rails 3.2.14, when supplying an invalid locale to I18n, it would fall back to its config.i18n.default_locale (which is...
Goal Within before_* Within after_* Cancel later callbacks throw :abort throw :abort Rollback the transaction throw :abort raise ActiveRecord::Rollback...
If you're still working on ruby 1.8, you should know that using SimpleDelegator is often prohibitively slow. I have...
This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...
Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end
When you want to find out the data type of an attribute, you can just use ActiveRecord's columns_hash...
Note - This is not a tutorial on setup or configuration of Secure Shell, but is an overview of technology which...
Rack::Attack is a rack middleware to protect your web app from bad clients. It allows whitelisting, blacklisting, throttling, and...
FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing...
If you get a Quota error with OpenStack, it doesn't have to be what it tell. For example, I...
Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...
When I upgraded from 0.5.4 PDFKit deadlocked or crashed when an ApplicationController::RouteError occured. If this error happens only because...
Ubuntu 12.04 LTS x64, Ruby 1.8.7, Rails 2.13, PDFKit 0.5.4, Phusion Passenger Apache 2 I ran into this, when I...
I am using git at several places: at work, at university, and at home. I want an own git user/email...
Usually our mysql queries are not case sensitive. In order to query case sensitive, you can use the mysql COLLATE...
After reading, you will know why and how runners.each(&:run) works. Here some tidbits: & can be quite confusing because it...
Weighttp is threaded and might exhaust resources of an application better than ApacheBench or httperf. You need libev installed.
Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...
A snippet of the carrierwave documentation You might come to a situation where you want to retroactively change a version...
Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...
Search engines, such as Google and Bing are engineered to crawl static web pages, not javascript-heavy, client-side apps...
Motion is quickly becoming one of the most important emerging techniques in building a quality user experience on the web...
One of many useful techniques when your test suite needs to talk to a remote API.
If you need to enable NewRelic monitoring on certain machines within the same Rails environment, a simple solution is to...