'rails generate' commands hang when trying to create a model

后端 未结 6 712
时光取名叫无心
时光取名叫无心 2021-01-30 06:14

I\'m new to rails and decided this morning to dump my whole database design/model and start over. And being a noob, I\'m sure did it incorrectly.

I removed all the files

6条回答
  •  渐次进展
    2021-01-30 06:48

    I had the same problem when trying use rails g controller and it would just hang. I used the same steps @mtrolle suggested:

    bundle config --delete bin
    rails app:update:bin
    git add bin

    So when I ran: rails g controller Project index it created the controller, helpers, and index view and GET 'project/index' route as expected.

提交回复
热议问题