Hot to: use routes to url rewrite

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.

NEVERMIND ;O

I was testing locally and forgot to reset my hosts file. Doh!