I have a REST API that is HTTP Basic Auth enabled.
My user name is an email address: "firstname.lastname@example.org" and my password
Logging in and everything work fine in the browser or curl. However,
I'm lost at how to use an email for a username with ActiveResource. If
I don't escape the '@' in the email I get a bad uri error:
URI::InvalidURIError: bad URI(is not URI?): http://email@example.com:asdf@localhost:3000
and If I escape the '@' with '%40' it's taken literally and the
username is passed to rails as 'email%40domain.com' and subsequently
class ARModel < ActiveResource::Base
self.site = "http://email%40domain.com:asdf@localhost:3000"
Any ideas what I should do?