rjs ファイルに次のコードがあります。
if @books_by_author.count != 0
page.alert("The following books reference the author you want to delete: \n
# here i want to list all the books referencing the author
");
end
@books_by_author をループして、その名前を page.alert 内に表示するにはどうすればよいですか?
貴重なご協力ありがとうございます