I'm using: Rails 3.2, Mac OS X Mountain Lion
I have this Active Resource Model:
Class Model < ActiveResource::Base
self.site = "http://localhost:3000"
end
Problem is, the site I am connecting to has an authentication. It checks for parameters api_key and api_secret so that it knows who it's talking to.
My question is: How do I pass parameters in active resource? I tried the "http://api_key:api_secret@localhost:3000
" way and the "http://localhost:3000?api_key=1234&api_secret=1234
" way but both didn't work.
Thanks a lot.