Switching from rails to rails-api