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

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

For university I have to stay up-to-date with lecture documents. Since my university doesn't offer RSS feeds...

The SQL code generated by Graticule's spherical distance computation is insufficient and can lead to NULL distances in edge...

sequel.rubyforge.org

Seems like a useful gem for cases where ActiveRecord is overkill but you don't want to do everything by...

apidock.com

Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...

For performance improvements (and to remove the need for eager loading), the ActsAsTaggableOn gem supports caching your tag lists directly...