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
Showing
想要评论请 注册 或 登录