aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-05-14 08:38:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-05-14 08:38:37 +0000
commit86d2b2792a50d21462216b18fb63e57a628ca40f (patch)
tree53973c5144c65ad1234e732451aadfa03294c299 /actionpack/CHANGELOG
parentdb11abbfba2401790f15db98678cee6d3da118a0 (diff)
downloadrails-86d2b2792a50d21462216b18fb63e57a628ca40f.tar.gz
rails-86d2b2792a50d21462216b18fb63e57a628ca40f.tar.bz2
rails-86d2b2792a50d21462216b18fb63e57a628ca40f.zip
Added support for POST data in form of YAML or XML, which is controller through the POST_DATA_MARSHAL header
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG30
1 files changed, 30 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 50e135be72..94bbe0d534 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,35 @@
*SVN*
+* Added support for POST data in form of YAML or XML, which is controller through the POST_DATA_MARSHAL header. Example request:
+
+ POST_DATA_MARSHAL: xml
+ <request><item><content>HelloWorld</content></item></request>
+
+ ...is the same as:
+
+ POST_DATA_MARSHAL: yaml
+ ---
+ item:
+ content: HelloWorld
+
+ ...is the same as:
+
+ item[content]=HelloWorld
+
+ Which in the end turns into { "item" => { "content" => "HelloWorld" } }. This makes it a lot easier to publish REST web services on top of your regular actions (as they won't care).
+
+ Example Curl call:
+
+ curl -H 'POST_DATA_MARSHAL: xml' -d '<request><item><content>KillMeMore</content></item></request>' http://www.example.com/service
+
+ You can query to find out whether a given request came through as one of these types with:
+ - request.post_format? (:query_string, :xml or :yaml)
+ - request.formatted_post? (for either xml or yaml)
+ - request.xml_post?
+ - request.yaml_post?
+
+* Added bundling of XmlSimple by Maik Schmidt
+
* Fixed that render_partial_collection should always return a string (and not sometimes an array, despite <%= %> not caring)
* Added TextHelper#sanitize that can will remove any Javascript handlers, blocks, and forms from an input of HTML. This allows for use of HTML on public sites, but still be free of XSS issues. #1277 [Jamis Buck]