Interesting question. First of all I think you need to change this a bit into
/api/users/1 as the canonical url and perhaps add a route like /api/users/search?email=youremail which redirects to the canonical url. On Fri, Oct 7, 2011 at 8:31 AM, Heinz Strunk <[email protected]> wrote: > Hey, > > I'm currently implementing a API for a website which is supposed to > support following requests: > /api/users/id/1 > /api/users/email/[email protected] > ... > > Of course the email address with its dot causes an error because if the > .org which is interpreted as file format. > > How can I pass an email address like that? > > Thanks for the help, > Hans > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

