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:
parent
5f906defc8
commit
b999617dde
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue