Closed philnash closed 5 years ago
It would be awesome if the router was improved so that
get 'users/create'
Works.
I also tried yesterday
resoures :users, only: [:index]
which also doesn't work. Rails background probably doesn't help π
@tongueroo ^^ is this interface something you would like to support as well?
Yes. Want to add resoures: users, only: [:index]
Will be part of #308 improvements
Checklist
jets upgrade
command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/Expected Behaviour
I have a Jets app in API mode. I run the controller generator:
I expect the app to be able to start and to have a new route pointing to the Users controller create action.
Current Behavior
The app fails to start due to an argument error in the routes
Step-by-step reproduction instructions
π₯
Code Sample
The
get 'users/create'
is the source of the wrong number of arguments error. It works with:Solution Suggestion
I haven't had time to work on a solution yet. I raised this issue to track it. I will take a look at this tomorrow.