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

makandra dev

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:

makandra dev
github.com

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.

makandra dev

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

blog.bitcrowd.net

To make the RSpec matcher of the authorization solution Consul work with Rspec 2.x read the following blog post...

ghacks.net

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

localeapp.com

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

github.com

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

makandracards.com

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

makandra dev

When you're getting this error, one possibility is that you've created a select field for an association instead...

windowsteamblog.com

This will hopefully kill IE6 and IE7 for good. The latest available IE for Windows XP is IE8 though.

The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does...

github.com

When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...