I want to develop a simple api that will be used by iPhone. I have to begin with authentication process i.e., in phone the user has to enter the username and password and then the api has to check if it is a valid user and write a success message else a failure message has to be sent. So how can i do this?
I have looked for example but i could not find a good tutorial from scratch. So please help me.
You can use devise gem
implementation details can be found at https://github.com/plataformatec/devise