How to let Rails tell mobile applications that users signed in or not?
问题 I'm developing a Rails application that use devise as the authentication solution. For web applications, users enter username and password in a form, Rails can render different pages after users signed in. Now I'd like to use this framework to support mobile app. In this case, the mobile app needs to know whether the user enters correct username and password. How should devise response to the mobile application, response headers or JSON inside body? Does devise support it? 回答1: You need token