Login
From:
Robert Mosolgo
(Uncensored)
subscribe
Dynamically-Generated Headers for ActiveResource Requests
https://rmosolgo.github.io/rails/2014/02/05/dynamically-generated-headers-for-activeresource-requests.html
links
backlinks
Roast topics
Find topics
Find it!
Need to add a header to an ActiveResource request? If you need to do it at dynamically at request-time, redefine .headers. I needed to include header in my requests, but I didn’t just want to set it in the class definition.