Posts Tagged ‘Best Practices’

3

COMMENTS

Rails Best Practices 1: Fat Model – Skinny Controller

Maintain 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 controller to the model.
1. Named Scope
In this first example we see how to use a named_scope to move the research methods in the model, simplifying the [...]

GO
5

COMMENTS

Rails Best Practices: introduction

I’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 these posts will also be an opportunity for me to investigate my knowledge, so I invite you right now to follow this trip [...]

GO

Copyright 2012 DevInterface s.n.c.

DevInterface Blog is proudly powered by WordPress