This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...
Let's say you need to revert a migration that happened a while back. You'd create a new migration...
Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...
Sometimes it might be helpful to have a version history for a gem, e.g. when you want to see if...
When using Rails to truncate strings, you may end up with strings that are still too long for their container...
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:
Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...
Using .downcase or .upcase on strings containing umlauts does not work as expected in Ruby versions before 2.4. It leaves...
To make the RSpec matcher of the authorization solution Consul work with Rspec 2.x read the following blog post...
Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...
Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...
A possible way for localisation in Rails applications that allows editing translations remotely.
If you're using Paperclip to store and convert images attached to your models, processing a lot of images will...
Our rcov:all task for aggregated RSpec/Cucumber coverage was overhauled extensively. Among other things it now works for Rails 2...
Association named 'variations' was not found; perhaps you misspelled it? I just was hunting down a strange error with this...
When you're getting this error, one possibility is that you've created a select field for an association instead...
The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does...
When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...
Submit buttons in Rails come with a useful option :disable_with which will disable the button when clicked and change...
When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...
If you turn on stylesheet caching, it might happen that stylesheets from different locations with different relative pathes will be...