Added Rails snippets