Error compiling templates for the Play platform

Hi, I am trying to display a form and follow the correct tutorial. But I get a compilation error that ...

Missing arguments for the method are applied as an object. follow this method with `_ 'if you want to treat it as a partially applied function

My template is as follows

@main("Example"){
    <h1>SignUp Form</h1>

    @helper.form(action = routes.Application.submit()) 
    {
        @helper.inputText(signupform("name"))
        @helper.inputText(signupform("password"))
        <input type="submit" value="Signup" />
    }
}
+5
source share
2 answers

Your braces are wrong ...

@helper.form(action = routes.Application.submit()) {
  @helper.inputText(signupform("name"))
  @helper.inputText(signupform("password"))
  <input type="submit" value="Signup" />
}
+9
source

signupform is undefined. Use the lower format in the first line to define the registration form:

@(signupform: Form[_])
0
source

All Articles