I created a form with play framework but when I want to set the "action" form property like this :
@helper.form(action = @action) {
It didn't work ...
My @action is define as a String
How to make this "action" form property dynamic ?
I can do this with "if" but it's ugly ...
form()
helper expects aplay.api.mvc.Call
as an action, so you need to prepare it somehow, ie in controller, like this:and then just pass
saveAction
into first argument ofform
helper: