Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...
I have a pair of headphones connected to my desktop's back panel and a headset connected to the front...
For performance improvements (and to remove the need for eager loading), the ActsAsTaggableOn gem supports caching your tag lists directly...
Since Firefox 8 it is possible to define custom context menus (right clicking) with HTML markup.
To use different Ruby versions on your computer you can use the Ruby Version Manager. It also allows you to...
If you get the above error when running tests in bulk (but not individually), it's actually the fault of...
"Classic" Excel (XLS) has a magic limit of 65535 rows per worksheet. This was fixed in XLSX but the version...
When you have objects in your database that hold latitude and longitude and you want to find others that are...
You have to specify the environment with -e env_name or RAILS_ENV=env_name if you want to run...
You can group contacts using a mailing list in Thunderbird for easier access and less trouble when trying to find...
Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...
tig path_to_file_or_files_or_path_with_wildcard
When using state_machine you sometimes need to know whether an object may execute a certain transition. Let's take...
In order to prevent the browser from asking whether to remember the password, give a form an autocomplete attribute with...
Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...
ActiveSupport's memoize has a dangerous feature you might not know about. Assume you have class DeepThought extend ActiveSupport::Memoizable...
If you get an error like this: Unable to launch /home/bruce/Projects/myproject/tmp/capybara/capybara-201110311210111407691101.html ... update your launchy gem. It failed for us in...
After starting the Rails server in a freshly generated Rails 3.1 project you could see an error message such as...
Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...
If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...
Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...
Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...
Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...
You must reconfigure the guest so it will get its own IP address: Shutdown the guest In the guest's...