code snippets from RoR workshop at General Assembly