Lugo Labs

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, such as sorting, searching, and pagination, but it also allows us to add our own custom plugins. Today we'll create our own tabular plugin, that will add a title to the page. Agreed, not very practical (we can just write it with HTML), but useful to illustrate the process.

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...
Upgrading to Ruby on Rails 5
12 January 2016

Upgrading to Ruby on Rails 5

Last week I upgraded the Lugo Labs website to Rails 5. The process was easy overall, with some little tweaks....
Simple exception monitoring in Ruby on Rails
31 December 2015

Simple exception monitoring in Ruby on Rails

We have a look at installing exception_notification in a Ruby on Rails app to email us anytime an error occurs...
Turn jQuery UI datepicker into a weekpicker
27 December 2015

Turn jQuery UI datepicker into a weekpicker

Where we transform the famous jQuery UI datepicker into a weekpicker. This means that when we hover over the calendar...