diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 024bbf52f2..55f2058d3d 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,9 @@
*SVN*
+* Added block-usage to PrototypeHelper#form_remote_tag, document block-usage of FormTagHelper#form_tag [Rick]
+
+* Add a 0 margin/padding div around the hidden _method input tag that form_tag outputs. [Rick]
+
* Added block-usage to TagHelper#content_tag [DHH]. Example:
<% content_tag :div, :class => "strong" %>
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index 8d6d8e99ea..ca6d9e1841 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -12,6 +12,19 @@ module ActionView
# Starts a form tag that points the action to an url configured with url_for_options just like
# ActionController::Base#url_for. The method for the form defaults to POST.
#
+ # Examples:
+ # * form_tag('/posts') =>
+ # * form_tag('/posts/1', :method => :put) =>
+ # * form_tag('/upload', :multipart => true) =>
+ #
+ # ERb example:
+ # <% form_tag '/posts' do -%>
+ #
<%= submit_tag 'Save' %>
+ # <% end -%>
+ #
+ # Will output:
+ #
+ #
# Options:
# * :multipart - If set to true, the enctype is set to "multipart/form-data".
# * :method - The method to use when submitting the form, usually either "get" or "post".
@@ -31,7 +44,7 @@ module ActionView
html_options["method"] = "post"
else
html_options["method"] = "post"
- method_tag = tag(:input, :type => "hidden", :name => "_method", :value => method)
+ method_tag = content_tag(:div, tag(:input, :type => "hidden", :name => "_method", :value => method), :style => 'margin:0;padding:0')
end
if block_given?
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index 1b4d2e71d8..f26b673fbc 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -164,7 +164,12 @@ module ActionView
#
# By default the fall-through action is the same as the one specified in
# the :url (and the default method is :post).
- def form_remote_tag(options = {})
+ #
+ # form_remote_tag also takes a block, like form_tag:
+ # <% form_remote_tag :url => '/posts' do -%>
+ #