Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
[Katie & Brian] Adding text/javascript as content type for xhr respon…
Browse files Browse the repository at this point in the history
…ses.
  • Loading branch information
Kate Gengler committed Sep 9, 2011
1 parent 4a2f98b commit 1257192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/errational/errationality.rb
Expand Up @@ -13,7 +13,7 @@ def handle_exception(exception_or_message)

def render_error(message)
if request.xhr?
render :partial => Errational.error_partial, :status => Errational.error_response_code, :locals => {:message => message}
render :partial => Errational.error_partial, :status => Errational.error_response_code, :locals => {:message => message}, :content_type => "text/javascript"
else
respond_to do |format|
format.text do
Expand Down

0 comments on commit 1257192

Please sign in to comment.