I recently installed the rails-api gem:
gem install rails-api
The gem installs correctly but I get this error
▶ rails-api new scripted-api
zsh: command not found: rails-api
As far as I know (based on what I have read online) all I need to do is install rails-api gem and rails-api new should work. Has anyone else had issues with this at all?
After thinking about it further. I realized after yez's response that it is definitely an rbenv issue. So to solve this I did:
rbenv rehash
once this was done i was able to run:
rails-api new app_name
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.