Hi Katerna,

Rails has a handy helper for this.  blank? returns true for false, empty
or whitespace strings.  nil is false.  You'll need to move the negation
to the beginning.
 
On Mon, 2010-02-08 at 19:53 +0100, Ketema Harris wrote:
> % if @request.env['HTTP_USER_AGENT'].downcase.index('msie 6.0')!=nil

if [email protected]['HTTP_USER_AGENT'].downcase.index('msie 6.0').blank?

HTH,
Bill


-- 
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