try to use redirect_to for ratings
Fix some things in the use of redirect_to
include sort_by in redirect_to