authlogic rails question - how to code for an API
- by phil swenson
I have authlogic going on my app, but now I need to have an an API. I
don't want to establish a session, just want a user to send in data in
a json request such as:
{"type":"address","password":"mypassword","name":"my notificaiton name
goes here","user":"myusername","text":"my interesting stuff goes
here"}
So questions -
1) is this a decent approach?
2) how do i do the auth inside my rails controller?