aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-05-14 17:30:35 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-05-14 17:30:35 +0000
commit6e7b593992f8f6f8e783b87e7ab9d1d5a97063f7 (patch)
tree8de722a5e02bd4e0e7bcfc10bc3a677d1744b9f4 /actionpack/CHANGELOG
parent50253edec97429ea92621bce6578cdedfcc19b62 (diff)
downloadrails-6e7b593992f8f6f8e783b87e7ab9d1d5a97063f7.tar.gz
rails-6e7b593992f8f6f8e783b87e7ab9d1d5a97063f7.tar.bz2
rails-6e7b593992f8f6f8e783b87e7ab9d1d5a97063f7.zip
Added record identifications to FormHelper#form_for and PrototypeHelper#remote_form_for [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG24
1 files changed, 24 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 25210bb34f..3d85c7b4a7 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,29 @@
*SVN*
+* Added record identifications to FormHelper#form_for and PrototypeHelper#remote_form_for [DHH]. Examples:
+
+ <% form_for(@post) do |f| %>
+ ...
+ <% end %>
+
+ This will expand to be the same as:
+
+ <% form_for :post, @post, :url => post_path(@post), :html => { :method => :put, :class => "edit_post", :id => "edit_post_45" } do |f| %>
+ ...
+ <% end %>
+
+ And for new records:
+
+ <% form_for(Post.new) do |f| %>
+ ...
+ <% end %>
+
+ This will expand to be the same as:
+
+ <% form_for :post, @post, :url => posts_path, :html => { :class => "new_post", :id => "new_post" } do |f| %>
+ ...
+ <% end %>
+
* Rationalize route path escaping according to RFC 2396 section 3.3. #7544, #8307. [Jeremy Kemper, chrisroos, begemot, jugend]
* Added record identification with polymorphic routes for ActionController::Base#url_for and ActionView::Base#url_for [DHH]. Examples: