reworked to get it working with Rails 4.2
dropped ratings