<!--
 ! Excerpted from "Rails Recipes"
 ! We make no guarantees that this code is fit for any purpose. 
 ! Visit http://www.pragmaticprogrammer.com/titles/fr_rr for more book information.
-->
var authors = new Array(<%= @authors.size %>);

<% @authors.each_with_index do |author, index| %>
  authors[<%= index %>] = "<%= author.name %>";
<% end %>    