So the rdoc claims that a rails request object should have a headers
method, right?
http://api.rubyonrails.org/classes/ActionController/AbstractRequest.html
**************
headers()
Provides acccess to the request‘s HTTP headers, for example:
request.headers["Content-Type"] # => "text/plain"
*************
Sounds simple enough. But when running in development mode on the local
server (start with ./script/server; mongrel installed), I find that my
request object is an ActionController::CgiRequest, and it has no headers
method defined. ("CgiRequest and TestRequest provide concrete
implementations.", do they now?)
Huh? What am I missing, how do I get request headers? And should this
documentation be fixed?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---