Ruby on Rails with Ajax assessment