Controller of Ruby on Rails in Java