Gist/PasteBin like application with refined approach in Ruby on Rails