Skip to content

Route helper for resource is not created #1

Open
@th0r

Description

@th0r

I have the following resource:

this.resources('users', { only: ['index', 'edit', 'update', 'destroy'] });

So, I don't have page to view user information (users#show), but I do have page to edit it (users#edit) and action to update if (users#update).
The problem is that in this case the route helper userPath is not generated and I can't set action attribute of the user's edit form:

<form id="editUser" method="put" action="{{ userPath(user) }}">...</form>

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