Undeterministically I got a nil error on saving the object caused by the random order of hash elements of the...

Let's say you need to revert a migration that happened a while back. You'd create a new migration...

If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...

TeamViewer 6 and lower had an issue where they would see a multi-monitor Linux setup as a single wall...

When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...

will_paginate triggers a database query to determine the total number of entries (i.e. to let you display the number...

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

This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...

In order to save the original value of a constant, set the new value and restore the old value after...

Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...

Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...

If Sunspot does not work and fails with a backtrace similar to this: /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response' /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:164...

Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...

makandra dev

This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...

makandra dev
github.com

Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...

makandra dev
github.com

Use the command geordi migrate to migrate your databases and to prepare them before running tests. The abbrevation geordi m...

Removing features and merging those changes back can be painful. Here is how it worked for me.\

Our gitpt script to generate git commits from Pivotal Tracker stories has been tweaked and polished and is now part...

stackoverflow.com

Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...

When selecting records in a date range, take care not to do it like this: start_date = Date.parse('2007-05...

Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...

The tagged_with scope comes with many awesome options to modify your search: User.tagged_with("awesome", "cool") # Users that are...

This might seem obvious, but I'm rejecting stories because of this on a regular basis. Whenever a list (e.g...