If you get this warning on your local machine one of these steps might help: Rebuilt the gem with the...
Example task: Multiply the table holidays between several stages. Open two terminals: shell-for stage_1 shell-for stage_2...
If some of your JavaScripts fail on Internet Explorer, but only in staging or production environments, chances are that JavaScript...
Give your iframe a name attribute (i.e. ) and then simply use When I press "Foo" in the iframe "myframe"
This didn't work for me. Seems display is already taken in Machinist. # in spec/support/blueprints.rb Partner.blueprint do company_name
Never ever declare your associations with a string, especially when doing metaprogramming. A common mistake is something like # WRONG
If this happens to you: user.avatar = Avatar.new user.avatar # => nil (where avatar is a belongs_to), you probably declared your association...
You're using exception_notification and want to send exception mails within a model. Here's how. The ExceptionNotifier class...
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...
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...
Today I got a better understanding of how git works, in particular what git checkout and git reset do.
CSS transitions make your responsive websites smoother and more professional. It's easy and already there. Use it!
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...
Given you store files on Amazon S3 and you need to stream those files out to people while you don...
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...
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...