Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Invalid note submits to /notes not /notes new #47

@leevigraham

Description

@leevigraham

If a note is submitted without a message it's invalid the user is redirected from the original form /note/new back to /note.

I understand that the postNoteAction is being served and processing the request so this is expected behaviour.

Is the only way around this abstracting the core of the postNoteMethod into a new method _handlePostAction() and calling it from both newNoteAction and postNoteAction? Given the example uses annotations I can't see any other way of implementing this.

Thoughts @gimler @lsmith77

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions