How should I go about creating a restful API in rails 3 app? Also I would like to know if there is a good way to implement restful authentication
Asked
Active
Viewed 2,558 times
4
-
If you need help creating json or xml response responses, I've written a blog post that will help: http://www.tmatthew.net/blog/rails_to_api – tybro0103 Jun 28 '11 at 20:08
4 Answers
2
If you're looking for a way to authenticate applications that are using your API, checkout the the restful_api_authentication gem - https://rubygems.org/gems/restful_api_authentication

Dave
- 43
- 3
1
The easiest way to create RESTful authentication in Rails is the combination of a User Model and a Session controller. So you will have new(login), create(authenticate), destroy(logout) actions in the Session controller. Depending on the app its fairly easy to write your own authentication. This screencast shows how easy it is. Authentication in Rails 3.1

loneaggie
- 297
- 2
- 8