Skip to content

Remove 'route' and 'nested_route' macro and add route inference to the generator #789

Answered by paulcsmith
paulcsmith asked this question in General
Discussion options

You must be logged in to vote

EDIT: There is now a milestone and issues created for this: https://github.com/luckyframework/lucky/milestone/5

I think we can close this discussion and I'll make an issue. Here is what I think we should do:

Generator changes

  • Generators still infer the path. So lucky gen.action.browser Users::Show will generate an action and will set path to get "/users/:user_id".
  • This makes it fast to generate actions just like it is now, and makes it clear how to modify the path and what the path is. Also allows for easily adding nesting since the path is written out: "/projects/:project_id/users/:user_id"
  • Add -n or --nested option where you can set a parent from the generator: lucky gen.action.brows…

Replies: 23 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

paulcsmith
Feb 9, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

paulcsmith
Feb 9, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

paulcsmith
Feb 9, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

paulcsmith
Feb 9, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

paulcsmith
Apr 5, 2020
Maintainer Author

You must be logged in to vote
1 reply
@jwoertink
Comment options

Answer selected by paulcsmith
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants