Fix resource rating not clicking problem.

Was due to turbolinks.js. The problem is described here http://asciicasts.com/episodes/390-turbolinks.