Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update changelog to reflect application/json content type.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 189ecafa5395f899c2f0593039cf978d637e31b3 1 parent 91d99e2
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/CHANGELOG
View
2  actionpack/CHANGELOG
@@ -1,7 +1,7 @@
*SVN*
* respond_to recognizes JSON. render :json => @person.to_json automatically sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument. #4185 [Scott Raymond, eventualbuddha]
- # text/x-json response with body 'Element.show({:name: "David"})'
+ # application/json response with body 'Element.show({:name: "David"})'
respond_to do |format|
format.json { render :json => { :name => "David" }.to_json, :callback => 'Element.show' }
end
Please sign in to comment.
Something went wrong with that request. Please try again.