You would do this type of thing (to get you started)
def browse
@user = current_user
@everything = @category.posts | @category.comments
end
In the view
%ul= render @everything
Make sure there is a views/comments/_comment.html.haml and a views/posts/_post.html.haml files.
Or you could render a specific partial and handle any differences in there
%ul= render :partial => shared/everything_item, :collection => @everthing