I have created view.input package in play framework and then form.scala.html file under it. now I want to use redirect in class as below:
return ok(form.render(somevalue));
here I am not able to get form which I have created under views and so I am getting an error. why is it so?
Thank you.
You should try:
or even:
but in such case it’s best to build view’s name with package prefix for visual differencing them from views from
viewspackage/app/views/input/inputForm.scala.html: