rails lloop
rails loop
1 2 3
@posts .each_with_index do |post, index| render :partial => " post " , :object => post, :locals => { :index => index} end
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did43701
rails loop
1 2 3
@posts .each_with_index do |post, index| render :partial => " post " , :object => post, :locals => { :index => index} end
上一篇: rails 命令行,学习心得,原作