aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-22 15:34:43 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-22 15:43:17 +1100
commit6c2f4ff8bc6d8e91e7d6ea5ee85fb793aa06d74a (patch)
tree2eedf0b4dd9bdfef570eabbd5504ec704f9a61f6
parent0078c3d4eacb3107766a057a42644b9066f15c4a (diff)
Rename routes
-rw-r--r--app/views/request/_sidebar.html.erb2
-rw-r--r--app/views/request/new_report_request.html.erb2
-rw-r--r--config/routes.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/app/views/request/_sidebar.html.erb b/app/views/request/_sidebar.html.erb
index 5ee1d9333..03185c44b 100644
--- a/app/views/request/_sidebar.html.erb
+++ b/app/views/request/_sidebar.html.erb
@@ -25,7 +25,7 @@
<% else %>
<p><%= _('Requests for personal information and vexatious requests are not considered valid for FOI purposes (<a href="/help/about">read more</a>).') %></p>
<p><%= _('If you believe this request is not suitable, you can report it for attention by the site administrators') %></p>
- <%= link_to _("Report this request"), new_report_request_path(:url_title => @info_request.url_title) %>
+ <%= link_to _("Report this request"), new_request_report_path(:url_title => @info_request.url_title) %>
<% end %>
<% end %>
<h2><%= _("Act on what you've learnt") %></h2>
diff --git a/app/views/request/new_report_request.html.erb b/app/views/request/new_report_request.html.erb
index 4ac110f80..11b682282 100644
--- a/app/views/request/new_report_request.html.erb
+++ b/app/views/request/new_report_request.html.erb
@@ -8,7 +8,7 @@
</p>
<p>Why specifically do you consider this request unsuitable?</p>
- <%= form_tag report_path(:url_title => @info_request.url_title) do %>
+ <%= form_tag request_report_path(:url_title => @info_request.url_title) do %>
<p>
<label class="form_label" for="reason">Reason:</label>
<%= select_tag :reason, options_for_select(["Contains defamatory material", "Not a valid request", "Request for personal information", "Contains personal information", "Vexatious", "Other"]), :prompt => "Choose a reason" %>
diff --git a/config/routes.rb b/config/routes.rb
index 4869990e3..c3e512b9d 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -59,8 +59,8 @@ Alaveteli::Application.routes.draw do
match '/upload/request/:url_title' => 'request#upload_response', :as => :upload_response
match '/request/:url_title/download' => 'request#download_entire_request', :as => :download_entire_request
- match '/request/:url_title/report' => 'request#report_request', :as => :report, :via => :post
- match '/request/:url_title/report/new' => 'request#new_report_request', :as => :new_report_request
+ match '/request/:url_title/report' => 'request#report_request', :as => :request_report, :via => :post
+ match '/request/:url_title/report/new' => 'request#new_report_request', :as => :new_request_report
####
#### User controller