X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/4b9ff92166d374ee89304aadc69e375f23283796..8f8d580c7eae5973df1957acdbd84489d8a96e69:/app/views/layouts/main.rhtml diff --git a/app/views/layouts/main.rhtml b/app/views/layouts/main.rhtml index 74ad018..1542b84 100644 --- a/app/views/layouts/main.rhtml +++ b/app/views/layouts/main.rhtml @@ -6,7 +6,8 @@ <%= stylesheet_link_tag "main", :media => "all" %> <%= stylesheet_link_tag *(@stylesheets) %> <%= stylesheet_link_tag "ie6hacks", :media => "all" if \ - request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %> + request.methods.include?(:user_agent) and \ + request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %> <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>