From b999617dde1bf4bc2a140c0b889fc5710479107a Mon Sep 17 00:00:00 2001 From: John Edmonds Date: Sat, 24 Sep 2011 15:59:37 -0400 Subject: [PATCH] Respond with HTML for Opera. If we don't respond with the content-type text/html, rails will return a 406 Not Acceptable. --- app/controllers/photos_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index e739c2e38..18ed04f3a 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -75,6 +75,7 @@ class PhotosController < ApplicationController respond_to do |format| format.json{ render(:layout => false , :json => {"success" => true, "data" => @photo}.to_json )} + format.html{ render(:layout => false , :json => {"success" => true, "data" => @photo}.to_json )} end else respond_with @photo, :location => photos_path, :error => message