When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...
Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...
Make sure you have libcurl3-dev installed: sudo apt-get install libcurl3-dev gem install typhoeus
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
Databound provides Javascript a simple API to the Ruby on Rails CRUD. Tries to expose a full model CRUD as...
Rails guide that covers PostgreSQL-specific column types and usages for Active Record. You should especially keep in mind the...
Chances are you're seeing the warning repeated a lot of times, maybe thousands of times. Here's how to...
If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...
Traveling Ruby is a project which supplies self-contained, "portable" Ruby binaries: Ruby binaries that can run on any Linux...
Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...
Shortener is a Rails Engine Gem that makes it easy to create and interpret shortened URLs on your own domain...
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
If you make a gem with Bundler, you will get a rake release task that will instantly publish your gem...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
Confusingly, RVM installs the bundler gem into the @global gemset, which is available to all gemsets and Rubies.
Firefox 5.0.1, which we were using for most Rails 2.3 projects, does not run on Ubuntu 14.04 any more. Here...
If you have this problem when you update your FreeBSD Ports: ===>>> Launching child to update ruby19-iconv-1.9.3.547,1 to...
The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...
We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...
Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.
tl;dr: Use with_index ActiveRecord's find_each with index If you do not provide a block to find...
Nice tutorial about packaging Ruby bindings to your API in a Ruby gem, with tests using VCR casettes.
There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...