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.

web.archive.org

TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...

to_file has been removed in Paperclip 3.0.1. Instead of using File to access Paperclip storage objects (like this: File.read...

makandra dev

Today I got a better understanding of how git works, in particular what git checkout and git reset do.

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

Simply use OpenStruct#to_h to receive an OpenStruct's hash representation. In older Rubies you need OpenStruct#marshal_dump...

simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...

Given you store files on Amazon S3 and you need to stream those files out to people while you don...

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

dfcb.github.com

This plugin makes it easy to add fit-to-fill background video to websites. It can play silent ambient background...

StaticMatic is a nice tool to build simple static websites. In case you want to have some nifty styles on...

makandra dev

Trick: Do not use convert but mogrify: mogrify -resize 50% * This overwrites the original image file. In contrast, convert writes...

If you type a command in your bash that doesn't exist you get this: bash: foo: command not found...

Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...

When you work in the MySQL console and you want to see which database is used, type: SELECT database();

The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...

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

funtoo.org

Keychain helps you to manage ssh and GPG keys in a convenient and secure manner. It acts as a frontend...

We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...

rubyforge.org

Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...

youtube.com

Interesting interview with DHH, where he talks about how they made the new Basecamp feel very fast without using a...

makandra dev
github.com

pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks...

makandra dev

If a customer calls and tells you that she cannot see some content of her website beware of the following...