a REST api provider app in RAILS (a tutorial)