Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"rails-api new" not working

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?

like image 538
sump Avatar asked Dec 07 '25 06:12

sump


1 Answers

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
like image 113
sump Avatar answered Dec 08 '25 20:12

sump



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!