<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,13 +15,13 @@ module ActionController
         path = &quot;#{Rails.public_path}/#{status[0,3]}.html&quot;
 
         if locale_path &amp;&amp; File.exist?(locale_path)
-          render :file =&gt; locale_path, :status =&gt; status
+          render :file =&gt; locale_path, :status =&gt; status, :content_type =&gt; Mime::HTML
         elsif File.exist?(path)
-          render :file =&gt; path, :status =&gt; status
+          render :file =&gt; path, :status =&gt; status, :content_type =&gt; Mime::HTML
         else
           head status
         end
       end
 
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/localized_rescue/actioncontroller/rescue.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module ActionView #:nodoc:
   class PathSet &lt; Array #:nodoc:
 
-    def find_template(original_template_path, format = nil)
+    def find_template(original_template_path, format = nil, html_fallback = true)
       return original_template_path if original_template_path.respond_to?(:render)
       template_path = original_template_path.sub(/^\//, '')
 
@@ -15,14 +15,16 @@ module ActionView #:nodoc:
         elsif template = load_path[template_path]
           return template
         # Try to find html version if the format is javascript
-        elsif format == :js &amp;&amp; template = load_path[&quot;#{I18n.locale}/#{template_path}.html&quot;]
+        elsif format == :js &amp;&amp; html_fallback &amp;&amp; template = load_path[&quot;#{I18n.locale}/#{template_path}.html&quot;]
           return template
-        elsif format == :js &amp;&amp; template = load_path[&quot;#{template_path}.html&quot;]
+        elsif format == :js &amp;&amp; html_fallback &amp;&amp; template = load_path[&quot;#{template_path}.html&quot;]
           return template
         end
       end
 
-      Template.new(original_template_path, self)
+      return Template.new(original_template_path, original_template_path =~ /\A\// ? &quot;&quot; : &quot;.&quot;) if File.file?(original_template_path)
+
+      raise MissingTemplate.new(self, original_template_path, format)
     end
 
   end</diff>
      <filename>lib/localized_templates/actionview/paths.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>852ac754340e0711ade5a833cfd9ae9b449eb80b</id>
    </parent>
  </parents>
  <author>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </author>
  <url>http://github.com/josevalim/localized_templates/commit/4280833fa586fd26dacf20cd8c8c8974914815bb</url>
  <id>4280833fa586fd26dacf20cd8c8c8974914815bb</id>
  <committed-date>2009-03-31T06:07:59-07:00</committed-date>
  <authored-date>2009-03-31T06:07:59-07:00</authored-date>
  <message>Ensure everything works on Rails 2.3.2</message>
  <tree>3ac7209e6d1bc46baf275fde2b684817856d7ab4</tree>
  <committer>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </committer>
</commit>
