Rails code snippets · April 12, 2015