We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you execute bundle exec hanami generate action books.index several times. You end up with the same routes in routes.rb Example :
bundle exec hanami generate action books.index
$ bundle exec hanami generate action books.index $ bundle exec hanami generate action books.index ## config/routes.rb module Bookshelf class Routes < Hanami::Routes get "/books", to: "books.index" get "/books", to: "books.index" end end
We should have the root only one time what do you think ?
The text was updated successfully, but these errors were encountered:
After some investigation it seems it comes from this piece of code : Should we check if the routes is already in the file ?
fs.inject_line_at_class_bottom( fs.join("config", "routes.rb"), "class Routes", route(controller, action, url, http) )
Sorry, something went wrong.
Yes, I believe so, duplicates have no sense.
Yes, I would love help with a fix for this!
No branches or pull requests
When you execute
bundle exec hanami generate action books.index
several times.You end up with the same routes in routes.rb
Example :
We should have the root only one time what do you think ?
The text was updated successfully, but these errors were encountered: