Building the Perfect Rails 5 API Only App Thanks to the new rails-api gem that ships as part of the Rails 5 core, Rails is now an ideal candidate for building streamlined APIs quickly and easily. Until now, arguably the best option for creating APIs in Ruby has been Grape, and while Grape is still… Read More

UUID’s I love UUID’s. You should use them. Rails 4 makes it simple to get setup and use UUID’s throughout your project. First, we enable UUID’s: rails g migration enable_uuid_extension This creates the following migration: class EnableUuidExtension < ActiveRecord::Migration def change enable_extension ‘uuid-ossp’ end end Next, create a model rails g model Book title The… Read More

Rsync with a non-standard ssh port While doing some work on the JQuery Plugins site today, I needed to use rsync over ssh. The ssh daemon on the remote server runs on a non-standard port, and all the port related options to rsync only change settings if you’re running the rsync-daemon. After some searching, the… Read More