diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-22 17:02:23 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-22 17:02:23 +1100 |
commit | 1e89b0ab2050238d3368fd0fbaeac66e35c80d1c (patch) | |
tree | 4060485dc67daf8e89c6b89ca7c0deda361e99cf /app | |
parent | 5fbb8f4357fd759cadfa0191694d3bad49d86a90 (diff) |
Rename controller actions
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/reports_controller.rb | 4 | ||||
-rw-r--r-- | app/views/reports/new.html.erb (renamed from app/views/reports/new_report_request.html.erb) | 0 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index cf1ad19e7..070a91421 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -1,5 +1,5 @@ class ReportsController < ApplicationController - def report_request + def create info_request = InfoRequest.find_by_url_title!(params[:url_title]) if !authenticated_user flash[:notice] = _("You need to be logged in to report a request for administrator attention") @@ -12,7 +12,7 @@ class ReportsController < ApplicationController redirect_to request_url(info_request) end - def new_report_request + def new @info_request = InfoRequest.find_by_url_title!(params[:url_title]) if authenticated?( :web => _("To report this request"), diff --git a/app/views/reports/new_report_request.html.erb b/app/views/reports/new.html.erb index 11b682282..11b682282 100644 --- a/app/views/reports/new_report_request.html.erb +++ b/app/views/reports/new.html.erb |