Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compilation error of Play framework Templates

hi i am trying to display a form and following a proper tutorial.. But i am getting compilation error which is..

missing arguments for method apply in object form; follow this method with `_' if you want to treat it as a partially applied function

My template look like this

@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" />
    }
}
like image 210
Muhammad Saqib Avatar asked Aug 22 '12 09:08

Muhammad Saqib


1 Answers

Your braces are wrong...

@helper.form(action = routes.Application.submit()) {
  @helper.inputText(signupform("name"))
  @helper.inputText(signupform("password"))
  <input type="submit" value="Signup" />
}
like image 108
Marius Soutier Avatar answered Jan 03 '23 13:01

Marius Soutier