built a simple version of github gists as jquery and rails practice