aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-11 16:04:59 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-12 14:57:44 +0000
commitd98732783b14869aca818d0c204bfb6e67b268d7 (patch)
treef73b7b6b1e4d0253cb6527d666269542485f53c3 /app/controllers/request_controller.rb
parentc0c79a024d6cbfdea18fd87d620c856d8dfc43ef (diff)
Don't specify format in template name.
In render calls, that's now deprecated in favour of using the :formats option.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 388473b51..44f3a5b9b 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -965,8 +965,9 @@ class RequestController < ApplicationController
end
if !done
file_info = { :filename => 'correspondence.txt',
- :data => render_to_string(:template => 'request/show.text',
- :layout => false) }
+ :data => render_to_string(:template => 'request/show',
+ :layout => false,
+ :formats => [:text]) }
end
file_info
end