diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3ca3a0644..9ae7bc67d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -55,7 +55,7 @@ protected end fmt.json do - render :json => {:success => false, :reason => "authentication failed"}, :status => 401 + render :json => {:success => false, :reason => "authentication failed"}.to_json, :status => 401 end end end