For performance improvements (and to remove the need for eager loading), the ActsAsTaggableOn gem supports caching your tag lists directly...

blog.carbonfive.com

I still see people promoting various gems and plugins to handle miscellaneous configuration elements for your application. One little known...

beginrescueend.com

To use different Ruby versions on your computer you can use the Ruby Version Manager. It also allows you to...

"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...

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...

Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...

danhixon.github.com

If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.

First keep in mind that :dependent => :destroy hooks into before_destroy. So when you use other before_destroy callbacks the...

In order to monitor a Rake task using God your Rake file must write a file with its process ID...

github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

When adding a new field to your model's database table, don't set any defaults in the database.

Oniguruma is an advanced regular expression engine for Ruby. Install Oniguruma with binary dependencies like this: sudo apt-get install...

In case you have sensitive data within your RDS instance, you want to use encrypted connections between your application and...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...

We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara...

stackoverflow.com

Most likely you run rake and your code is causing an exception which is not the one shown in your...

The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...

There are many blog posts on encrypting backups, but none works for local drives. #How to Encrypt the external backup...