nSume with Ruby on Rails