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

:Rgenerate migration add_foo_to_bar isn't working properly. Plz, help!

Open kobiljonergashev opened this issue 8 years ago • 5 comments

I'm a Windows user :))). When I try :Rgenerate migration add_foo_to_bar gVim giving me this message: :!ruby bin/rails generate migration add_foo_to_bar C:\Users\ERGASH~1\AppData\Local\Temp\VIe2 a31.tmp 2>&1 shell returned 1 and doing NOTHING! Plz, help!!!

kobiljonergashev avatar Jun 11 '16 11:06 kobiljonergashev

What is :set shell?? Have you adjusted any other shell options?

tpope avatar Jun 11 '16 21:06 tpope

shell=C:\Windows\system32\cmd.exe. I didn't adjusted anything in shell options. What should I do next?

kobiljonergashev avatar Jun 12 '16 04:06 kobiljonergashev

See if :Rails generate ... works.

tpope avatar Jun 12 '16 04:06 tpope

Yes it is working!!!! Thanx a looooooooooooooooot.

kobiljonergashev avatar Jun 12 '16 04:06 kobiljonergashev

So what is difference :Rgenerate and :Rails generate? If I use :R as :Rails with every command, it is working...

kobiljonergashev avatar Jun 12 '16 04:06 kobiljonergashev