Respond with HTML for Opera.

If we don't respond with the content-type text/html, rails will return a 406 Not Acceptable.
This commit is contained in:
John Edmonds 2011-09-24 15:59:37 -04:00
parent 5f906defc8
commit b999617dde

View file

@ -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