我正在使用 rake db:reset 并且返回错误
I am using rake db:reset and it is returning an error
I am trying creating user-specific posts in the seeds file. the directions I am following tell me to reset the database. In the rails c (console) I entered:
rake db:reset
It gave me this error. Doesn't make sense.
NameError: undefined local variable or method `reset' for main:Object
rake
命令是从command line
得到运行;不是来自 rails console
.
同样的错误见Rails gives NameError for all command line methods such as generate or rake。
I am trying creating user-specific posts in the seeds file. the directions I am following tell me to reset the database. In the rails c (console) I entered:
rake db:reset
It gave me this error. Doesn't make sense.
NameError: undefined local variable or method `reset' for main:Object
rake
命令是从command line
得到运行;不是来自 rails console
.
同样的错误见Rails gives NameError for all command line methods such as generate or rake。