makandra dev
github.com

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

github.com

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

The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...

vitalets.github.io

Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. Such technique is also known...

github.com

bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...

engineyard.com

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

We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv

If you get an error like this: An error occurred while installing pg (0.17.1), and Bundler cannot continue.

github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...

makandra dev
feedjira.com

Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...

makandra dev
github.com

Parses URLs of social networks to extract IDs or screen names. It does not get confused by child routes: you...

stackoverflow.com

Previously the assets group existed to avoid unintended compilation-on-demand in production. As Rails 4 doesn't behave like...

Safari on iOS accepts an apple-touch-icon favicon that is used for stuff like desktop bookmarks. Always define a...

makandra dev
github.com

The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...

Be careful to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore...

rails-assets.org

Automatically builds gems from Bower packages (currently 1700 gems available). Packaged Javascript files are then automatically available in your asset...

In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...