1
도우미 메서드에서이 털이 비트가 있어요 :레일스 : content_tag에 여러 개의 렌더링이 있습니까?
template = content_tag(:div) do
form_builder.fields_for(association, object) do |f|
formats.each do |format|
partial = "#{format}_fields"
render(:partial => partial, :locals => { :f => f })
end
end
end
불행히도 content_tag
내에서 each
루프를 수행하면 불행히도 template
실제로 내용이없는 것 같습니다.
어떤 생각을 어떻게 풀 수 있습니까? 이 content_tag
에 대해 render
여러 부분이 필요합니다.
참고 : Rails 3.0.3
을 실행 중입니다.