aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb6
-rw-r--r--app/views/layouts/default.rhtml2
2 files changed, 1 insertions, 7 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index cf0845970..d645a8b95 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,12 +1,6 @@
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
- # This was the best solution I could find to this, yeuch.
- # http://www.ruby-forum.com/topic/88857
- def stylesheet_link_tag_html4( _n )
- return stylesheet_link_tag( _n ).gsub( ' />', '>' )
- end
-
# Copied from error_messages_for in active_record_helper.rb
def foi_error_messages_for(*params)
options = params.last.is_a?(Hash) ? params.pop.symbolize_keys : {}
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index 8ec31ea19..6045e5f93 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -3,7 +3,7 @@
<head>
<!-- <script type="text/javascript" src="/js.js"></script> -->
<title>Freedom of Information Filer and Archive <%= @title ? "-" : "" %> <%=@title%></title>
- <%= stylesheet_link_tag_html4 'main' %>
+ <%= stylesheet_link_tag 'main' %>
</head>
<body>
<h1 id="header">Freedom of Information Filer and Archive <span id="beta">Beta</span></h1>