Optional argument with defaults for actions
It feels like it should be something really simple but its just not working out.
I have a resource with a non-null string attribute that defaults to an empty string
Then how can I get the action to accept an optional argument for title, defaulting to an empty string?
Something like this:
Will raise an error telling me
somehow still raises with the same changeset error. I feel like I'm missing something really obvious
I have a resource with a non-null string attribute that defaults to an empty string
Then how can I get the action to accept an optional argument for title, defaulting to an empty string?
Something like this:
Will raise an error telling me
title is required. And something like thissomehow still raises with the same changeset error. I feel like I'm missing something really obvious
