From: John Dong Date: Fri, 31 Aug 2007 19:30:49 +0000 (-0400) Subject: Fix test cases... X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/8f8d580c7eae5973df1957acdbd84489d8a96e69?ds=sidebyside Fix test cases... --- 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" %>