aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-15 14:29:37 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-15 14:47:03 +1100
commit35f4455c4f5e62778ec8b5560b8216028bd9e487 (patch)
treefe728f977f0e22be0fc77532661ef0f6f8ea558a
parent44e876fc4ef955808ebc868b0308266aa5a06d1f (diff)
Replace use of route_url(:only_path => true) with route_path where we can
-rwxr-xr-xapp/helpers/link_to_helper.rb4
-rw-r--r--app/views/admin_general/index.rhtml2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index a2286825f..f1bec2b51 100755
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -31,11 +31,11 @@ module LinkToHelper
end
def request_similar_url(info_request)
- return similar_request_url(:url_title => info_request.url_title, :only_path => true)
+ similar_request_path(:url_title => info_request.url_title)
end
def request_details_path(info_request)
- return details_request_url(:url_title => info_request.url_title, :only_path => true)
+ details_request_path(:url_title => info_request.url_title)
end
# Incoming / outgoing messages
diff --git a/app/views/admin_general/index.rhtml b/app/views/admin_general/index.rhtml
index 3b4a86a58..c683f411a 100644
--- a/app/views/admin_general/index.rhtml
+++ b/app/views/admin_general/index.rhtml
@@ -98,7 +98,7 @@
</ul>
<p>(<%= link_to "Full list", admin_request_list_old_unclassified_url %>, or play public
- <%= link_to "Categorisation game", categorise_play_url(:only_path => true) %>)
+ <%= link_to "Categorisation game", categorise_play_path %>)
</p>
<% end %>