Lugo Labs

Improved no results messages
02 March 2017

Improved no results messages

Many times in index pages we need to show a message that there are no results to view. Usually as a results of a search, as in the example of Iconly. If you search for an icon on the top search bar, and no results our returned, the message in the article is shown. Let's see how we've built that notice.

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