Hanami: Hanami Generators are not generating expected files and directories.

Created on 27 Oct 2020  路  3Comments  路  Source: hanami/hanami

While creating new action with command,
hanami generate action web home#index
it gives output:

zsh: no matches found: home#index

I have changed the file permission and checked with bundle exec output is same.

   gem version: hanami-v1.3.3

   operating system:  Ubuntu 20.04 ( WSL )

invalid

Most helpful comment

ZSH globs on # (and other things, like []).

Try quoting the value: hanami generate action web "home#index"

All 3 comments

ZSH globs on # (and other things, like []).

Try quoting the value: hanami generate action web "home#index"

It works now... thanks @adam12

hanami generate action web home/index

Also works :)

We have a note about this in the "getting started" guide: https://guides.hanamirb.org/introduction/getting-started/#hanami-generators

Thanks for the help @adam12 馃尭

Was this page helpful?
0 / 5 - 0 ratings