Add Rails and JavaScript snippets for chrislopresto