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