Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.
There is a nasty bug in all version of Rails 2 and some versions of Rails 3.x where two...
Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...
Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...
Sometimes you can make your life easier by not allowing a record attribute to be changed after the record was...
blueprint is DevStructure’s workhorse tool that looks inside popular package managers, finds changes you made to configuration files, and...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
Merging .po-files with Git is painful. There have been attempts of making Git more clever when trying to merge...
The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...
Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...
If in your application your users pass along params that result in filenames, like invoices/generated?number=123. This could be...
If you have the following deprecation warning after upgrading to rails >= 2.3.10 DEPRECATION WARNING: The :overwrite_params option is deprecated...
You will occasionally need to clean out your database while keeping the schema intact, e.g. when someone inserted data in...
Adds a slide out panel to your Rails application that directs clients to test stories that have been marked as...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
There are two ways to define a class method from a Modularity trait. Note that the usual caveats regarding class...
When you have a Cucumber step like Then I should see "Did you see those \"quotation marks\" over there...
On 32bit systems, the maximum representable Time is 2038-01-19 03:14:07 in UTC or 2038-01-19...
This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...
When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...
jQuery plugin to register callback functions to keyboard shortkuts. Keyboard events in vanilla Javascripts are super-painful to work with...
Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...
This card describes a Cucumber step that lets you say: When I perform basic authentication as "username/password" and I visit...
When defining a trait using the Modularity gem, you must take extra steps to define constants to avoid caveats (like...