开发者

Can't figure out how to use db:seed for rails in netbeans

can't seem to get my seeds.rb file to run through the command "rake db:seed". I'm using netbeans and I'm a beginner to rails, so I could be doing something really simple and stupid =/. I know you're m开发者_运维知识库eant to put your seeds.rb file in the db directory but netbeans doesn't seem to have one or might have renamed it... any help out there?


The rake task db:seed will load the Rails environment and then load and execute the file db/seeds.rb.

If you do not have a file db/seeds.rb, then make one (and if necessary make the db directory too).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜