Here I’ll show in simple steps how to create a file system (CowFS) with Ruby and FUSE. In 5 minutes you will be able to create your own file system. Commands

Basic code

Read More


This method works with: Rails apps (your portable app will be a webserver); Scripts with gems; Multiple source file scripts; Simple, single source file scripts; The final app is a single executable file that can run on systems without a ruby interpreter installed. UPDATE: I developed a gem that automates this process. Check it out:… Read More


So you have an Angular application running on a domain (http://myfabulousapp.com) and the Rails API running on another domain (http://api.myfabulousapp.com). It’s all working well, but now you want to implement authentication using Devise. How do you do this?… Read More


Let’s say you have a product model and wants to insert a picture on it. Unfortunately Rail’s Active Record doesn’t provides a native way to work with binary fields. We can easily add a string field, for example, but we can’t add a file field. Dragonfly is a gem that extends ActiveRecord, allowing to have… Read More


Virtually every single site that I had made have a form that asks for the user’s city and state. It’s a simple thing, omnipresent in almost any website, but oddly there’s no library to deal with that. Maybe its a regional need, specific to my country, IDK, I just know that is very usual to… Read More


CodeFly is a gem that I made, that allows you to do parallel / asynchronous programming in Rails. This is how a classic code looks like:

This is how a flied code looks like:

The first code will take 2.5 sec, but the second will take only 1.5, almost the twice of speed.… Read More