diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-24 13:55:57 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-24 13:55:57 +0000 |
commit | b953ca8561ae05efbaedd84eec876a46d3b63ee1 (patch) | |
tree | 9ac5e32d56aede6a042ed104405dc8927391dcf1 /actionpack | |
parent | 80b656637a29ce827b10923bb357cd56cde9b15f (diff) | |
download | rails-b953ca8561ae05efbaedd84eec876a46d3b63ee1.tar.gz rails-b953ca8561ae05efbaedd84eec876a46d3b63ee1.tar.bz2 rails-b953ca8561ae05efbaedd84eec876a46d3b63ee1.zip |
Added support for automatic id-based indexing for lists of items #532 [dblack]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 6bcc7dd865..a88fb8b65e 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,19 @@ *SVN* +* Added support for automatic id-based indexing for lists of items #532 [dblack]. Example: + + <% @students.each do |@student| %> + <%= text_field "student[]", "first_name", :size => "20" %> + <%= text_field "student[]", "last_name" %> + <%= text_field "student[]", "grade", :size => "5" %> + <% end %> + + ...would produce, for say David Black with id 123 and a grace of C+: + + <input id="student_123_first_name" name="student[123][first_name]" size="20" size="30" type="text" value="David" /> + <input id="student_123_last_name" name="student[123][last_name]" size="30" type="text" value="Black" /> + <input id="student_123_grade" name="student[123][grade]" size="5" type="text" value="C+" /> + * Added :application_prefix to url_for and friends that makes it easier to setup Rails in non-vhost environments #516 [Jamis Buck] * Added :encode option to mail_to that'll allow you to masquarede the email address behind javascript or hex encoding #494 [Lucas Carlson] |