Browser Determination

Can someone please point me to where I can find the party-line on
determining the user’s browser in order to write browser-dependent
code? With Rails doing so many things for me, I want to avoid getting
caught up in trying to hack my way through an issue that Rails has
already settled. Thanks for any input.

  ... doug

Doug,

You can get the browser info by calling request.env[‘HTTP_USER_AGENT’]


Thiago J.
acts_as_solr => http://acts-as-solr-rubyforge.org
Sitealizer Web Stats => http://sitealizer.rubyforge.org

You can get the browser info by calling request.env[‘HTTP_USER_AGENT’]

Thanks.

 ... doug