Does anyone know how I can render a partial that has an assosciation
with something else (e.g. render a comments partial in posts-- where the
comments belong to posts).
If you have your model associations setup properly you should be able
to access them using post.comments
class Post < ActiveRecord::Base
class Comment < ActiveRecord::Base
In _post.rhtml you can do
<%= render :partial => "comment/comment", :collection => post.comments
That assumes you have a partial called _comment.rhtml in the "comment"
directory under views.