This card describes how to pass an array with multiple element to a JavaScript function, so that the first array...
In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...
If you have some file or directory that should trigger a Spring reboot, tell Spring e.g. in config/spring.rb: Spring.watch 'file.rb...
The most obvious way to use spring is to call it explicitly: spring rails console spring rake db:migrate...
See screenshot here. This is great news because network throttling is very painful in Linux. The features are already in...
Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...
When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...
An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...
"Keyword arguments" allow naming method arguments (optionally setting a default value). By using the double-splat operator, you can collect...
Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...
For me guard recently took a very long to start (as in "minutes"), because I had lots of images in...
As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...
Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...
A little-known feature of modern Regexp engines that help when optimizing a pattern that will be matched against long...
When you tell rbenv to install a Ruby it does not know about, you will get an error message.
RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...
When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...
Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...
jQuery plugin that makes it easy to dynamically add and remove records when using ActiveRecord's nested attributes.
ActiveRecord caches results of SQL queries. If you want to discard the cached results for one model, you can call...
SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...
MuPDF is a PDF reader that renders very quickly, yet still correctly. It supports PDF 1.7 and all the fancy...
So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...