Forum: Ruby on Rails Regarding REST

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6e2b30f1afcb618ac9f30429016b8bb1?d=identicon&s=25 Krishna Porandla (krishna14)
on 2009-02-13 10:37
(Received via mailing list)
How to write routes.rb specification to add login.rhtml and
register.rhtml files into my application.
0de88d211e8c4b42e5c346fe8606910e?d=identicon&s=25 Hafeez Shaik (hafeez)
on 2009-02-13 10:50
(Received via mailing list)
Login function is like method  "get"
Register function is like method "post"

The syntax for this is :

map.resources :Controller_names, :Login => { :read => :get }
map.resources :Controller_names, :Register => { :read => :post }

Enjoiy.......

Regards
hafeez
280b78a61a968391b7e07e912be102a8?d=identicon&s=25 Robert Walker (robert4723)
on 2009-02-13 17:57
Krishna Porandla wrote:
> How to write routes.rb specification to add login.rhtml and
> register.rhtml files into my application.

Take a look as restful_authentication plugin, even if you don't end up
using it, it will show you how they do authentication RESTfully.

http://github.com/technoweenie/restful-authenticat...

Of course, I think reinventing the authentication wheel is a waist of
time, when plugins like restful_authentication, among others, do the job
quite well.
This topic is locked and can not be replied to.