Ruby 2 / Rails 4 web application to manager publisher royalties