I have a REST API that is HTTP Basic Auth enabled.
My user name is an email address: “[email protected]” 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:
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:[email protected]:3000”
Any ideas what I should do?