aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/path_set.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2011-09-02 21:35:24 +0700
committerPrem Sichanugrist <s@sikachu.com>2011-09-04 11:55:12 +0700
commitb84cee08c6129717d7c3291918f06f95cc9eb916 (patch)
tree84dcf7af7d54265602f7499ed69ca5cec345ebdd /actionpack/lib/action_view/path_set.rb
parentd50c0acc95d9ac9b258594c7d68e1eeef9b6d41e (diff)
downloadrails-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 'actionpack/lib/action_view/path_set.rb')
0 files changed, 0 insertions, 0 deletions