[** UPDATE: 21/01/2013 **]: Thanks to Kevin Triplett now there's a Devise wiki page referencing this post and combining the comments. Please check this wiki page, especially if...
Read more[** UPDATE: 21/01/2013 **]: Thanks to Kevin Triplett now there's a Devise wiki page referencing this post and combining the comments. Please check this wiki page, especially if...
Read moreEvery time you create a web application where users can register, it is good to exclude some login or username so that they can not be used. A classic example is the login "adm...
Read moreHello everyone.With today’s article I want to show how to implement two dropdowns dependent on each other using Django and jQuery.Suppose we have a 1-N relationship between car ...
Read moreIn my last post I talked about Ruby's hash. Today I will resume and complete the argument by describing some of the things you can do to manipulate the hash values. 1. How to i...
Read moreHello everyone.In this article I will show you how to create a custom feed in Django, using the Django Syndication Feed Framework 1.2 or higher.I’ve had to create an XML with so...
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 more