Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...

For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists

Today, I ran into trouble on a fairly fresh installed VM, running Ubuntu. I tried to bundle install and got...

stackoverflow.com

When you use method_missing to have an object return something on a method call, always make sure you also...

makandra dev

You can specify the version of bundler to execute a command (most often you need an older version of bundler...

makandracards.com

Updated the card with our current best practice (shared app code and specs via symlinks).

makandra dev

has_defaults is now a gem, no longer a plugin. The plugin version no longer exists. Note that plugins are...

ActiveSupport::Memoizable will be removed from Rails and has a lot of strange caveats that will ruin your day.

If you upgrade to the mysql2 gem, you will run into the problem that the server's database.yml (which is...

makandra dev

Last week saw a security issue with rails 2.3 that required a fix. While an official patch was provided, the...

This script loads a dump into your development database. You can provide the full path to you database dump like...

makandracards.com

deploy-to-production now calls Capistrano with bundle exec since we started to bundle Capistrano in all projects.

makandra dev
github.com

Geoffrey Grosenbach has created Gruff for easily plotting graphs. It is written in pure Ruby and integrates with Rails applications...

ruby-toolbox.com

If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

If your project uses another version than your default Ruby, RubyMine will give you incorrect inspections, for example.\

There is a conflict between current capistrano versions and the 2.5.1 net-ssh gem. Make sure you upgrade to 2.5.2...

makandra dev

Capistrano recently had some API changes that can results in deploys not working when running with old deploy.rb files.

If you get an error like this … can’t find executable rails for rails-3.2.3 (Gem::Exception) … one of several...

makandra dev
ocra.rubyforge.org

OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running...

makandra dev
github.com

DTAUS & DTAZV are formats for German bank transfers and is short for "Datenträgeraustausch". The format itself totally sucks because it...

In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:

All our projects have enum-like requirements like this: An attribute value must be included in a given set of...

stackoverflow.com

This is for you if Passenger gives you the following useless error message. Passenger encountered the following error:\ The application...