ruby on rails 3 - How to render collection with template in rails3? -


if there _post.html.erb in app/views/posts/, can input <%= render @posts %> in app/views/posts/index.html.erb , if _post.html.erb file in app/views/users/posts/, how write?

i tried <%= render @posts, :template => 'users/posts/post' %> , not work.

<%= render :partial => 'users/posts/post', :collection => @posts %> 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -