No one was able to answer Rich Collins's question:
Is there an easy to use browser detection library for ruby / rails?
People succeed in answering Rich Collins's questions 37% of the
time (32 successes in 86
attempts).
Answers by: Sergio Freire | Adam Thorsen
Sergio Freire's Answer:
Chat Conversation 933 days ago
Hello Rich, to do this you don't need any special library.. you can just check one HTTP header which is named "User-Agent"
Sergio Freire
at 6:46 AM on Sunday June 18th, 2006
|
in Ruby this is as easy as looking at the request and accessing that "User-Agent" header by doing a @request.env['HTTP_USER_AGENT']
Sergio Freire
at 6:53 AM on Sunday June 18th, 2006
|
a simple place explaining this is available at http://rails.techno-weenie.net/tip/2006/4/9/server_side_browser_detection
Sergio Freire
at 6:54 AM on Sunday June 18th, 2006
|