Syntax error when creating a Rails model

后端 未结 6 1583
旧时难觅i
旧时难觅i 2020-12-19 20:10

I am creating Car model in Rails 3 by using command:

rails generate model Car name:string id_str:string

but I got the error:



        
6条回答
  •  失恋的感觉
    2020-12-19 20:28

    I was able to resolve this by adding an .rvmrc file to my application.

    echo "rvm ruby-2.0.0@rails32 --create" > .rvmrc
    

提交回复
热议问题