added remote: true
changed posts.js back to posts.js.coffee and added basic ajax