makandra dev

The very useful andand gem does not play very nice with Ruby's SimpleDelegator (or vice versa). This following will...

ebobby.org

A technique to vastly reduce the number of join model records that need to be stored in the database.

If you get a stacktrace complaining about uninitialized constant MysqlCompat::MysqlRes a system library update might broke your gem.

Rarely, you might want to rebuild all gems with native extensions, because they might be compiled against outdated system libraries...

If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...

In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...

makandra dev
github.com

The (admittedly crazy) goal of this Gem is to be able to format/split all phone numbers in the world.

This is for you if you get the following strange error from the state_machine gem: undefined method `-' for #

Geordi now supports our solution for running Selenium tests without having Firefox or Chrome windows popping up all over your...

Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...

If you get this warning on your local machine one of these steps might help: Rebuilt the gem with the...

If some of your JavaScripts fail on Internet Explorer, but only in staging or production environments, chances are that JavaScript...

makandra dev

This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...

Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...

There is no reason to leave trailing whitespace characters in your project's files, so don't add any.

The ActionMailer in Rails 2 depends on a buggy version of TMail, which sometimes inserts a blank line into the...

Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:

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

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...

blog.hashrocket.com

Testing with real live production data does come with at least one catch. All those real live users in your...