I''m sending a url via email so a user can activate their account.
Like so:
http://domain.com/confirm_email/f039a41a580735384c7e1e2deb379901e79981a7
This should map to a method in controller ''login'', with the
action
''confirm_email'' which expects the param
''code''.
I configured my routes file like so:
map.connect ''confirm_email/:code'', :controller =>
''login'', :action =>
''confirm_email''
But when I hit that url I get a 404, with no activity in the log file.
It''s not even making it to the action (or controller).
I''m not sure where I''ve gone wrong in my understanding of
routes.
Any help appreciated.
--
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
-~----------~----~----~----~------~----~------~--~---