[Rails] Re: Sending custom headers in Find method in ActiveResource:Base

2012-01-25 Thread Nadeem J. Qureshi
This guy understood my problem, and answered accordingly: http://prblm.aakashd.com/rails-activeresource-httpauthorization-header -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit

[Rails] Re: Sending custom headers in Find method in ActiveResource:Base

2012-01-22 Thread Nadeem J. Qureshi
No one knows? I've tried to monkey paths rails to do this, but didn't work. Please help :-) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit

Re: [Rails] Re: Sending custom headers in Find method in ActiveResource:Base

2012-01-22 Thread Michael Pavling
On 22 January 2012 16:10, Nadeem J. Qureshi justagang...@gmail.com wrote: No one knows? I don't think anyone really knows what you're asking. What do you mean by custom headers in a find? Headers have nothing to do with an AR find. Are you talking about browser headers (I guess it's something to

Re: [Rails] Re: Sending custom headers in Find method in ActiveResource:Base

2012-01-22 Thread Hassan Schroeder
On Sun, Jan 22, 2012 at 8:10 AM, Nadeem J. Qureshi justagang...@gmail.com wrote: No one knows? I've tried to monkey paths rails to do this, but didn't work. In four days you haven't yet read the ActiveResource documentation? Or just tried googling `ActiveResource headers` ?!? -- Hassan

Re: [Rails] Re: Sending custom headers in Find method in ActiveResource:Base

2012-01-22 Thread Michael Pavling
On 22 January 2012 16:59, Michael Pavling pavl...@gmail.com wrote: What do you mean by custom headers in a find? Headers have nothing to do with an AR find. Of course... you pointed the ActiveResource, and I've assumed ActiveRecord. Sorry for that. But still, you're not really doing enough to

[Rails] Re: Sending custom headers in Find method in ActiveResource:Base

2012-01-22 Thread Nadeem Qureshi
I'll try to rephrase: I'm trying to forward a cookie from the user-end to the API that receives the request from ActiveResource::Base.find What I want to be able to do in my Controller is this: User.find(1, :headers = { :cookies = session['user'] } And have this send the cookie from the user