jaredhanson / jaredhanson/node-actionrouter
Route helper for resource is not created
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
I have the following resource:
``` js
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:
``` html
...
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the resources(...) route-generation entry point for the listed index, edit, update, and destroy actions. Check how the edit form's userPath(user) expression is resolved, and consider the work complete when that helper is available for this resource configuration and produces the form action shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100