diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-22 17:15:08 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-22 17:15:08 +1100 |
commit | 2973621ba353cb48e251fda31631f7bfa4f57621 (patch) | |
tree | 1027eac9afaffc4385fcf24e5a8b85ead91c6932 /app/controllers/reports_controller.rb | |
parent | 1e89b0ab2050238d3368fd0fbaeac66e35c80d1c (diff) |
Rename parameter used in routes and controller
Diffstat (limited to 'app/controllers/reports_controller.rb')
-rw-r--r-- | app/controllers/reports_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 070a91421..924eb0108 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -1,6 +1,6 @@ class ReportsController < ApplicationController def create - info_request = InfoRequest.find_by_url_title!(params[:url_title]) + info_request = InfoRequest.find_by_url_title!(params[:request_id]) if !authenticated_user flash[:notice] = _("You need to be logged in to report a request for administrator attention") elsif info_request.attention_requested @@ -13,7 +13,7 @@ class ReportsController < ApplicationController end def new - @info_request = InfoRequest.find_by_url_title!(params[:url_title]) + @info_request = InfoRequest.find_by_url_title!(params[:request_id]) if authenticated?( :web => _("To report this request"), :email => _("Then you can report the request '{{title}}'", :title => @info_request.title), |