How to write routes.rb specification to add login.rhtml and register.rhtml files into my application. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Fri, Feb 13, 2009 at 3:07 PM, krishna <krishna1853-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > How to write routes.rb specification to add login.rhtml and > register.rhtml files into my application. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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-authentication/tree/master 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---