I have finished the assignment with no errors, you may just have a typo in your answer. If you post your code it would be easier to help you. A sample solution has been posted on GitHub Max-word-frequency.
1
solved Solutions of coursera ruby on rails assignment