aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
authorVasiliy Ermolovich <younash@gmail.com>2011-12-04 22:12:24 +0300
committerVasiliy Ermolovich <younash@gmail.com>2011-12-04 22:12:24 +0300
commite29773f885fd500189ffd964550ae20061d745ba (patch)
treef2e0fe6f86ed4c833e5396611553b8a879243326 /actionpack/CHANGELOG.md
parente9b6659c4ccd4272a363835274ec2e36e778dcd8 (diff)
downloadrails-e29773f885fd500189ffd964550ae20061d745ba.tar.gz
rails-e29773f885fd500189ffd964550ae20061d745ba.tar.bz2
rails-e29773f885fd500189ffd964550ae20061d745ba.zip
form_for with +:as+ option uses "action_as" as css class and id
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r--actionpack/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index 0545d36a0a..ebb8277220 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -1,5 +1,17 @@
## Rails 3.2.0 (unreleased) ##
+* form_for with +:as+ option uses "#{action}_#{as}" as css class and id:
+
+ Before:
+
+ form_for(@user, :as => 'client') # => "<form class="client_new">..."
+
+ Now:
+
+ form_for(@user, :as => 'client') # => "<form class="new_client">..."
+
+ *Vasiliy Ermolovich*
+
* Allow rescue responses to be configured through a railtie as in `config.action_dispatch.rescue_responses`. Please look at ActiveRecord::Railtie for an example *José Valim*
* Allow fresh_when/stale? to take a record instead of an options hash *DHH*