Rob Biedenharn wrote:
> On Feb 8, 2010, at 2:13 PM, Aldric Giacomoni wrote:
>>> @request.env['HTTP_USER_AGENT'].downcase.index('msie 7.0')!=nil %>
>>> nil:NilClass)
>>>
>>> how can i edit this code so that it can handle an empty user agent
>>> string?
>>>
>>
>> Ah, I see. You want 'nil' .. So you s
HI, I have inherited support on a rails website and I am encountering
the following problem:
<% if @request.env['HTTP_USER_AGENT'].downcase.index('msie 6.0')!=nil %>
<%= stylesheet_link_tag 'ie6' %>
<% elsif
@request.env['HTTP_USER_AGENT'].downcase.index('ms
2 matches
Mail list logo