The most famous framework based on Ruby language, Ruby on Rails, makes extensive use of hash. And cause in our blog we talk mainly about development with Ruby on Rails it seem f...
Read moreThe most famous framework based on Ruby language, Ruby on Rails, makes extensive use of hash. And cause in our blog we talk mainly about development with Ruby on Rails it seem f...
Read moreToday I want to present a very convenient jQuery plugin I’ve used to create a combo box with checkboxes for a multi-selection field.Suppose we have a form of insertion / modific...
Read moreIn some projects can happen that you have to use different graphic templates for different methods of the same controller. At first sight one would implement a solution that pro...
Read moreWith the today’s post I shall conclude my series on Ruby On Rails Best Practices . This is not because the required topics are completed, but rather because after the release of...
Read moreMigrations, in my opinion, are one of the best things in Rails since these allow the creation and populating the database using ruby code without having to worry about which typ...
Read moreIn today’s post I will show some optimization we can do for models. I’ll focus on how to put methods inside the right model and delegation to get a better code.1. Put method in...
Read moreToday's post discusses the first of the behavioral pattern shown by the GoF, the chain of responsibility. This pattern expects a series of commands to be executed and a set of ...
Read more[POST UPDATE ON 19/07/2010 - 15:45] Continuing our analysis of the Rails Best Practices today we’ll see two other tricks to make more readable method of the controller.1. Method...
Read moreThis second post of the series leaves for a moment the creational patterns and speaks about one of the most important structural pattern: the Adapter. The purpose of an adapter...
Read moreToday we continue our analysis of the Rails Best Practices. In the previous post we saw Named Scope, Model Association and Following the same direction, in today’s post we’ll ex...
Read moreHello everyone.With this post I would like to start a serie of articles concerning the description of the most common design patterns and how these can be applied with the Ruby ...
Read moreAn abstract Factory provides a common interface for creating families of related objects together. The client object does not bother to build objects directly, but it calls th...
Read moreMaintain a skinny controller is one of the most important things to increase the readability and testability of the code. Let’s see some practices to move from the logic control...
Read moreI’ve decided to dedicate a series of posts to Rails Best Practices because I think it is important to share in order to continuously improve the way you write programs.Write t...
Read moreIt happens sometimes that you have to implement creation or editing of a model splitted on more than one form. A classic case is a registration form divided into two steps or ...
Read more