diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 2af1d9f..858c451 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -26,7 +26,7 @@ module ApplicationHelper
string.lines.map { |l| "#{' ' * width}#{l}" }.join('')
end
- def category_link(text, url, name)
+ def link_to_category(text, url, name)
opts = {}
if name == @current_category
diff --git a/app/views/docs/_docs_topics.html.erb b/app/views/docs/_docs_topics.html.erb
index 1979f56..6ef6595 100644
--- a/app/views/docs/_docs_topics.html.erb
+++ b/app/views/docs/_docs_topics.html.erb
@@ -2,15 +2,15 @@
-
- <%= category_link 'About', docs_path(:about), :about %>
+ <%= link_to_category 'About', docs_path(:about), :about %>
-
- <%= category_link 'Getting started', docs_path(:record), :record %>
+ <%= link_to_category 'Getting started', docs_path(:record), :record %>
-
- <%= category_link 'Recorder options', docs_path(:options), :options %>
+ <%= link_to_category 'Recorder options', docs_path(:options), :options %>
<%# - %>
- <%# <%= category_link 'FAQ', docs_path(:faq), :faq %1> %>
+ <%# <%= link_to_category 'FAQ', docs_path(:faq), :faq %1> %>
<%#
%>
diff --git a/app/views/shared/_browse_categories.html.erb b/app/views/shared/_browse_categories.html.erb
index 5e0e616..2fae34b 100644
--- a/app/views/shared/_browse_categories.html.erb
+++ b/app/views/shared/_browse_categories.html.erb
@@ -2,11 +2,11 @@
-
- <%= category_link 'All', browse_path, :all %>
+ <%= link_to_category 'All', browse_path, :all %>
-
- <%= category_link 'Popular', popular_path, :popular %>
+ <%= link_to_category 'Popular', popular_path, :popular %>
<% if current_user -%>