added rails snippets