Added a few rails snippets