vim-rails icon indicating copy to clipboard operation
vim-rails copied to clipboard

Rgenerate , env: ruby.exe: No such file or directory error

Open crokobit opened this issue 10 years ago • 2 comments

I use rvm. rails 4.0.3, ruby 2.0.0 First, when I use Rgenerate command, It shows error "/bin/bash: bin/rails: Permission denied". I solved it by this " http://stackoverflow.com/questions/19463908/whenever-cron-not-working-permission-denied ". Then, After command "chmod u+x bin/rails", It shows "env: ruby.exe: No such file or directory error" after command Rgenerate. How can I solve this? Thanks.

crokobit avatar Oct 09 '14 04:10 crokobit

Assuming you're not on Windows, sounds like your binstub has a screwed up shebang line.

tpope avatar Oct 09 '14 04:10 tpope

Same problem here, but trying to run :Rails console on zsh. I have a clean install of Thoughtbot's laptop script.

maxcodes avatar Feb 11 '15 09:02 maxcodes