Registance Game rewritten by Ruby on Rails 4