I'd like to use @request.user_agent to determine if someone is using
IE. So I thought the line
if @request.user_agent="Microsoft Internet Explorer" would be a bit of
programming genius. Sadly, it does not work and the complaint from
rails is "no = method for @request.user_agent. Interesting. So I tried
@request.user_agent.include("Microsoft") and apparently there is no
include method either. I tried to look up user_agent in the docs to
find out what it methods it did have and can find nothing on the
subject.
I think, more fundamentally, the reason your fist attempt failed is
that you were using the 'assignment' operator (=) instead of the
'equals' operator (==).