add rails factor to gem file
fix the rating bug