If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...

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

Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...

blog.salsify.com

An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...

github.com

Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...

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

regular-expressions.info

A little-known feature of modern Regexp engines that help when optimizing a pattern that will be matched against long...

RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...

Sometimes you're getting an ActiveSupport deprecation warning that you cannot or don't want to fix. In these cases...

Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...

SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...

When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...

If you get this error when you try to resize an OpenStack instance: # nova resize example 23 --poll

makandra dev
tldp.org

There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...

guides.rubyonrails.org

config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...

makandra dev

Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...

Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...

docopt.org

docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...

So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...