Browse Snippets

Small highly-focused lessons that will teach you best-practices and code patterns in web applications.

There are currently 11 code snippet lessons available on CodeDiode.io

Search Engine Friendly Rails Routing

Snippet

Search engine friendly URLs, or slugs, or permalinks, are not as straightforward as one might think. In this lesson, I am ...

Ruby on Rails

Loading Spinners in Rails

Snippet

If your Rails app performs time consuming AJAX requests, such as image uploads or API calls, it might be nice to let the u...

Ruby on Rails jQuery CSS

AJAX Image Uploads with Rails

Snippet

In this lesson, we will be creating an Image model that will process file uploads via AJAX. This lesson is going to use Ca...

Ruby on Rails jQuery

Upload Files to Google Cloud Storage with CarrierWave

Snippet

Uploading files to a Content Delivery Network (CDN) is a feature that is best implemented during the early stages of devel...

Ruby on Rails

Zurb Foundation + Rails

Snippet

Zurb Foundation is a SASS based frontend framework that can provide your app with a great looking, responsive, and highly ...

Ruby on Rails