Ported node.js app templates to Rails app