You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First and foremost, I cannot express my admiration for the work everybody here is doing enough! This is an amazingly helpful project!!!
The feature request I'm suggesting is a way to customize some of the "baked in" options, specifically the route naming convention - apologies if this has been covered elsewhere.
Right now, the routes.stub file has magic methods for things like "index_route_name" and "create_route_name". Those end up defaulting out to models.model.index and models.model.show by default.
The coding style in my company is to use much sorter route names, and I'd love to be able to overwrite the current stubs to use the preferred formatting.
Thanks for considering this!
The text was updated successfully, but these errors were encountered:
This could be added in future releases. However, you may be able to utilize existing options/configurations to do what you need. Can you please explain what are you trying to do here? Or how do you foresee the route name?
In this specific example, I'd like to ensure that the route conventions in my project are changed from "models.model.index" to just "models", and for the rest to follow the convention "model.show"/"model.edit" etc (both in the routes file, as well as in all the generated views obviously)
How are you going to differentiate between the different actions methods on your controller? Also, what value would having a different name add to your project?
First and foremost, I cannot express my admiration for the work everybody here is doing enough! This is an amazingly helpful project!!!
The feature request I'm suggesting is a way to customize some of the "baked in" options, specifically the route naming convention - apologies if this has been covered elsewhere.
Right now, the routes.stub file has magic methods for things like "index_route_name" and "create_route_name". Those end up defaulting out to models.model.index and models.model.show by default.
The coding style in my company is to use much sorter route names, and I'd love to be able to overwrite the current stubs to use the preferred formatting.
Thanks for considering this!
The text was updated successfully, but these errors were encountered: