ruby-toolbox.com

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

makandra dev

Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...

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.

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

objectmentor.com

Slides presenting ways to integrate the ideas of Aspect-Oriented Programming in Ruby. Outline Why Aspect-Oriented Programming?

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

Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...

stackoverflow.com

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

wholemeal.co.nz

If you cannot install the gem 'RedCloth' via bundle install you might want to try the following. Specifying extra build...

Geordi, our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the...

After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...

weblog.jamisbuck.org

How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...

robots.thoughtbot.com

TL;DR {} binds stronger than do … end (as always in Ruby, special characters bind stronger than words) Demo

This card needs to be updated for Rails 3+. Since there is no --debugger flag you need to run:

The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...

stackoverflow.com

This will give you the string that appears most often in an array: names = %w[ foo foo bar bar bar...

Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.