A basic example of a rails app with devise as json api