I am running Rails 5.1.5.rc1 and Ruby 2.5.0. Just added the friendly_id gem ( gem 'friendly_id', '~> 5.1.0'
) to my gemfile and ran bundle install. I then ran rails generate friendly_id
Immediately I get the error "Could not find generator 'friendly_id'. Maybe you meant 'helper', 'channel' or 'mailer' Run rails generate --help
for more options."
I can see that the gem was installed.
Anyone know how to solve this or what the issue might be?
Thanks a lot in advance!
if you facing this kind issue for rails generator command. run below command in your terminal or command prompt
spring stop
After this run your generate command
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.