# Question regarding shorthand syntax for collection rendering

**URL:** <https://www.ruby-forum.com/t/question-regarding-shorthand-syntax-for-collection-rendering/192271>\
**Category:** Rails\
**Created:** [July 27, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/question-regarding-shorthand-syntax-for-collection-rendering/192271 "2010-07-27T14:17:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joep](https://www.ruby-forum.com/u/joep)\
**Post date:** [July 27, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/question-regarding-shorthand-syntax-for-collection-rendering/192271/1 "2010-07-27T14:17:02Z")

</div>

Hi all,

I have a collection which I render via

\<%= render :partial =\> ‘comment’, :collection =\> @results %\>

This works exactly as I expect it to.

However, when I change it to

\<%= render :partial =\> @results %\>

or

\<%= render @results %\>

both of which the documentation describe as ‘short hand’ versions of  
the first, I get:

Missing template \_comment.erb in view path

in spite of the fact that the template is there and renders correctly  
in the first case.

I’m using 2.3.8. Anybody know what is going on?

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![joep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joep](https://www.ruby-forum.com/u/joep)\
**Post date:** [July 27, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/question-regarding-shorthand-syntax-for-collection-rendering/192271/2 "2010-07-27T14:48:03Z")

</div>

Never mind. It appears active scaffold is actually messing this up. In  
a newly created project without active scaffold it works just fine.
