updated rails and eruby snippets