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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With