Rails 4 version of ratings app