If you just upgraded to Bundler 10.0.10 you might get the following error when bringing up Rails: /usr/lib/ruby/1.9.1/psych.rb:148:in...
Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
Now allows to list transition paths from and to arbitrary states.
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...
When you need to insert many records into the same table, performance may become an issue. What you can do...
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...
When you set both a record's association and that association's foreign key attribute, Rails does not realize you...
So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...
RubyGems 1.6.0 has undergone some changes which may cause Rails 2.x applications to break with an error like this...
If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...
Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.
On 32bit systems, the maximum representable Time is 2038-01-19 03:14:07 in UTC or 2038-01-19...
See our new comprehensive guide for upgrading every Rails 2 version ever.
When you use the send_file method to send a local file to the browser, you can save resources on...
When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...
A check if two date or time ranges A and B overlap needs to cover a lot of cases:
Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...
Sometimes it is useful to define a named scope by implementing a static method with the scope's name on...
Given group size If you would like to split a Ruby array into pairs of two, you can use the...
You cannot use Array#join on an array of strings where some strings are html_safe and others are not...