Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...

To install gems Bundler needs to be able to talk to https://api.rubygems.org. If you are behind a proxy you...

I got this error when running Rails 2.3 tests for Rails LTS. More stacktrace: NoMethodError: undefined method `cache' for Gem...

github.com

Note Maintenance mode is enabled on application server as soon as the file /public/system/maintenance.html is present. Note that the servers...

The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...

makandra dev
github.com

Install this gem and stop using bundle exec or even Geordi's handy b. Yay!

github.com

When using Sidekiq in your application, you must write thread-safe code. This wiki page also lists gems that are...

I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...

Cucumber raises a Cucumber::Ambiguous if more than one step definitions match a step. Our new cucumber_priority gem provides...

As we get an exception notification, when a cron job fails, we wish to have the full backtrace in this...

makandra dev
stackoverflow.com

When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...

I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...

Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...

When you're developing a gem, never list the same dependency as both runtime and development dependency in your .gemspec...

Sometimes you want to know exactly how many objects exist within your running Ruby process. Here is how: stats = {} ObjectSpace.each...

Starting with Rails 4.0, when you get an exception reported via the ExceptionNotification gem, you will only see a very...

github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

blog.intercom.io

A fantastic guide for a dilemma facing any web-based product. Here’s a simple set of Yes/No questions that...

bibwild.wordpress.com

While debugging an intricate issue with failed HTTP requests I have come to appreciate the more advanced features of the...

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

If the project team consists of at least 2 members, do a daily standup. It should not take much longer...

We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...

When working on a bigger project, the easiest way to improve your work relation with a client or an external...

When starting a project we always make a good estimate of all known requirements, and plan budgets and available developers...