Quiz system using Ruby on Rails 3