just getting started with Rails, I would like to consume a webservice (using ActiveResource) that has the following endpoint:
GET /user?some_header=XYZ
This is my ActiveResource Class:
class User < ActiveResource::Base
self.site = "url"
set_collection_name 'user' #avoid pluralization within the url
end
How would a call for the above endpoint now look like?
I tried
User.get('', headers={:some_header => "XYZ"})
but I'm getting a 404 (the request works when I fire it by hand).