I am trying to pass an arraylist to a scala template from a play controller.
In my controller
List<Profile> profiles = Profile.findAll();
return ok(contacts.render(profiles));
In the template contacts.scala.html
@import models.com.contactmanager.Profile
@(profiles: List[Profile])
I am getting the error:
not found: value profiles [error]
for line
@(profiles: List[Profile])