When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...
We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...
If you have an html_safe string, you won't be able to call gsub with a block and match...
RubyMine: Set specific Ruby version per project
For string columns, MySQL indexes the left side of a string. That means an index can speed a like query...
In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...
Testing with real live production data does come with at least one catch. All those real live users in your...
So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...
Our rspec_candy gem now gives you three matchers: be_same_number_as Tests if the given number is the...
When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...
paper_trail is an excellent gem to track record versions and changes. You almost never want to reimplement something like...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
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...
When you use method_missing to have an object return something on a method call, always make sure you also...
You can specify the version of bundler to execute a command (most often you need an older version of bundler...
Updated the card with our current best practice (shared app code and specs via symlinks).
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...
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...
deploy-to-production now calls Capistrano with bundle exec since we started to bundle Capistrano in all projects.