I guess I'm not understanding the question.

If you want to access a HTTP header such as HTTP_USER_AGENT, you can just 
pull it out of the request.env hash:

puts request.env["HTTP_USER_AGENT"]

Does it matter that there are other rails keys in the hash?

You can also print all the headers beginning with HTTP by using match if you 
want:

<% for header in request.env.select { |key, val| k.match("^HTTP.*")} %>
  <%= key %> <%= val %> 
<% end %>


-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to