From 8f8d580c7eae5973df1957acdbd84489d8a96e69 Mon Sep 17 00:00:00 2001 From: John Dong Date: Fri, 31 Aug 2007 15:30:49 -0400 Subject: [PATCH] Fix test cases... --- app/views/layouts/frontpage.rhtml | 2 +- app/views/layouts/main.rhtml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/frontpage.rhtml b/app/views/layouts/frontpage.rhtml index de173c2..d5a5f01 100644 --- a/app/views/layouts/frontpage.rhtml +++ b/app/views/layouts/frontpage.rhtml @@ -24,7 +24,7 @@   <%= link_to("sign up", :controller => "account", :action => "signup")%> <% end -%> -   <%= link_to ("help/about", :controller => "site", +   <%= link_to("help/about", :controller => "site", :action => 'about')%>

selectricity: voting machinery for the masses

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" %> -- 2.30.2