Florent Guilleux


Software engineer currently working with Ruby and Rails.

French but live in Lima, Peru.

Work for Intellum.


  1. Rails anti patterns

    I presented a few Rails anti patterns at the Ruby Peru meetup of April 2014. Here are the slides: …


  2. Handling Requests in Parallel in Rails Applications

    I presented an introduction about handling requests in parallel in Rails applications during the Ruby Peru meeting of August 2013. If you want to know more I highly recommend the book Working With Ruby Threads, from Jesse Storimer. Here are the slides: …


  3. Easier Usage of Attr_accessible

    attr_accessible is the recommended method to protect your attributes from mass assignments in Rails. It lists for a model the attributes that can be mass assigned, other attributes will be protected. But it is tedious to build and update this list of accessible attributes while developing an application. Fortunately…


  4. Control Over Standards

    The Measure of All Things is a great book about the invention the metric system during the French revolution. The following passage in particular caught my attention: Each act of measurement in the Ancien Regime referred to a particular physical standard, held in local hands and safeguarded by local officials…


  5. An ActiveRecord Plugin to Prevent Destroy if Associations Are Present

    I’ve just released a small plugin that adds ActiveRecord models a way to prevent destroy if specified has_many, has_one and/or belongs_to associations are present. This is achieved by adding a before_destroy callback that aborts the destroy and adds a base error on the instance…


  6. PostgreSQL Geometric Types in Ruby and Rails

    PostgreSQL supports several geometric types natively (point, line, rectangle, circle…) and operations and operators on these types. Thus PostgreSQL can calculate the distance between 2 points, the diameter of a circle, check if 2 lines intersect or not, if a point is contained in a polygon… Let see how to…