What does "render @collection" do?

Posted by ryeguy on Stack Overflow See other posts from Stack Overflow or by ryeguy
Published on 2010-04-02T16:15:29Z Indexed on 2010/04/02 16:33 UTC
Read the original article Hit count: 360

I'm trying to learn Rails better by looking at example applications, and while looking at this line of the source of railscasts.com, I noticed it does this:

<div class="episodes">
    <%= render @episodes %>
  </div>

What exactly is going on here? Why isn't this documented on the render function? Or is it?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about partial-views