Hi, this is my first time posting anything here, and I''d like to make
you aware that I''m quite a newbie myself, so if this is a dull
question, I''d like to offer my excuses.
I''m working on this restful project of mine, and at some point
I''ll be
sending emails to user with an URL, so they can get to the website by
clicking on it.
This URL is dynamic, and will have the following mapping on routes.tb:
'':order_no/:email''
So on my local environment Id get something like:
[url]http://127.0.0.1:3000/123456/user-ASQrhD/3864@public.gmane.org[/url]
Accessing this URL gives me the error:
No route matches
If I try the same URL without the .com bit of it i.e:
[url]http://127.0.0.1:3000/123456/user@user[/url]
It works fine. I''m thinking it behaves this way because the .com is
not being properly escaped.
I tried adding something like URI.escape('':order_no/:email''),
but
still that didn''t do the trick.
Has anyone of you guys experienced this, and could you please tell me
how to get around it?
Thanks a lot in advance,
Marcos Placona
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.