Lugo Labs

Using Bootstrap 4 with Ruby On Rails
15 February 2017

Using Bootstrap 4 with Ruby On Rails

A quick walkthrough on how to add Bootstrap 4 to an existing Ruby on Rails application. We'll use the bootstrap gem to manage the files and updates, and update the stylesheet and JavaScript manifestos.

Distinct Active Records in has_many through associations
07 February 2017

Distinct Active Records in has_many through associations

Learn how to load only distinct collections into Ruby on Rails models with has_many through associations.
Pretty URLs in Ruby on Rails with FriendlyId
25 January 2017

Pretty URLs in Ruby on Rails with FriendlyId

Our task today is to add unique slugs to our Company model on our Ruby on Rails app. The Company...
Custom Tabular plugins
08 January 2017

Custom Tabular plugins

Tabular is a small JavaScript library that builds tables using data fetched from the server. It comes with built-in plugins,...
Creating data backed tables with Tabular and Ruby on Rails
07 January 2017

Creating data backed tables with Tabular and Ruby on Rails

We have been building data tables for ages, and much of the elements are the same, such as fetching data...
Run single tests in Ruby on Rails 4
22 March 2016

Run single tests in Ruby on Rails 4

A zsh shell function to easily run single tests in Ruby on Rails 4.
Rewrite Medium in Ruby on Rails, Part 2: Creating the posts
03 February 2016

Rewrite Medium in Ruby on Rails, Part 2: Creating the posts

In the first part of this short series on how to build a Medium site in Ruby on Rails, we...
Rewrite Medium in Ruby on Rails, Part 1: The Setup
26 January 2016

Rewrite Medium in Ruby on Rails, Part 1: The Setup

I love Medium's interface, clean, tidy, devoid of any bells and whistles, making you concentrate on what you're reading, or...
Conditional validations with ActiveRecord
19 January 2016

Conditional validations with ActiveRecord

One of the processes that Ruby on Rails makes very easy is validating models conditionally. The perfect example I have...
Exclude files and folders from search in Sublime Text 3
13 January 2016

Exclude files and folders from search in Sublime Text 3

A simple way to exclude files and folders when searching on Sublime Text 3. And if you're using Rails' asset...