diff options
author | Prem Sichanugrist <s@sikachu.com> | 2011-09-02 21:35:24 +0700 |
---|---|---|
committer | Prem Sichanugrist <s@sikachu.com> | 2011-09-04 11:55:12 +0700 |
commit | b84cee08c6129717d7c3291918f06f95cc9eb916 (patch) | |
tree | 84dcf7af7d54265602f7499ed69ca5cec345ebdd /railties/test/generators | |
parent | d50c0acc95d9ac9b258594c7d68e1eeef9b6d41e (diff) | |
download | rails-b84cee08c6129717d7c3291918f06f95cc9eb916.tar.gz rails-b84cee08c6129717d7c3291918f06f95cc9eb916.tar.bz2 rails-b84cee08c6129717d7c3291918f06f95cc9eb916.zip |
Make `content_tag_for` and `div_for` accepts the array of records
So instead of having to do this:
@items.each do |item|
content_tag_for(:li, item) do
Title: <%= item.title %>
end
end
You can now do this:
content_tag_for(:li, @items) do |item|
Title: <%= item.title %>
end
Diffstat (limited to 'railties/test/generators')
0 files changed, 0 insertions, 0 deletions