diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
commit | 835b51c1de0d49e652fe9c9a60f0974275de070c (patch) | |
tree | 0d64a841f28654a66556bcc0c0bb1153bae645a2 /app/controllers/request_controller.rb | |
parent | 77a284d6d088f7aa6d40810d46a39658fc6cf2cd (diff) |
Rename ALL THE TEMPLATES!!1!!!one!!1!!
.rhtml is deprecated in favour of .erb in Rails 3
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 0c51d278f..c8da8e845 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -893,7 +893,7 @@ class RequestController < ApplicationController # by making the last work a wildcard, which is quite the same query = params[:q] @xapian_requests = perform_search_typeahead(query, InfoRequestEvent) - render :partial => "request/search_ahead.rhtml" + render :partial => "request/search_ahead" end def download_entire_request @@ -941,7 +941,7 @@ class RequestController < ApplicationController end if !done @info_request_events = @info_request.info_request_events - template = File.read(File.join(File.dirname(__FILE__), "..", "views", "request", "simple_correspondence.rhtml")) + template = File.read(File.join(File.dirname(__FILE__), "..", "views", "request", "simple_correspondence.html.erb")) output = ERB.new(template).result(binding) zipfile.get_output_stream("correspondence.txt") { |f| f.puts(output) |