Trying out rails-api to see how its done.