When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
We experienced problems with Sunspot and Solr on Tomcat: Umlauts (ä, ö, ü) were not correctly handled on Tomcat while...
The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...
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...
Sometimes you want one distinct version of RubyGems to be installed to replicate the same behavior across multiple servers.
Our gitpt script to generate git commits from Pivotal Tracker stories has been tweaked and polished and is now part...
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...
Firefox 3.6 users will receive update notifications in April offered through the browser’s internal updating service that will update...
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.
After my update from MacOS X 10.6 Snow Leopard to 10.7 Lion the search function in Apple Mail stopped working...
Note: capistrano_colors was merged into Capistrano starting from v2.13.5. However, this requires Ruby 1.9+. If you cannot upgrade Capistrano...
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...