Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...

These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...

Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...

makandra dev

When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...

Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...

We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...

makandra dev

You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...

Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...

Run rspec-and-cucumber from any project directory to run both RSpec and Cucumber. If available, rspec_spinner or cucumber...

wiki.qemu.org

When you want to quickly boot from a drive or image in a virtual machine you do not need to...

makandra dev

If you want to play music or sounds from a browser, your choice is to use either Flash or the...

makandra dev

Validations that need to access an associated object may lead to some trouble. Let's exemplify that using this example...

We often have a separate production branch that lags a bit behind the more cutting edge main branch. Sometimes you...

thrivingkings.com

An alert alternative for jQuery that looks good. Apprise is a very simple, fast, attractive, and unobtrusive way to communicate...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...

When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...

When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...

If you save a non-standard object (not a String or Fixnum, etc) like the AwesomeClass from your application in...

httpd.apache.org

If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...

You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...

You can use CSS attribute selectors in your step definitions like this: Then /^the page should have a meta description...

The Edge Rider gem will define a method collect_ids on your ActiveRecord models, scopes, integer scalars and collections, which...

ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...

If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...