我想用戶軌控制檯,但我每次鍵入命令時,我得到 NameError: undefined local variable or method `user' for main:Object
from (irb):3
from /Users/Home/.rvm/gems/[email protected]/gems/railties-3.0.9/lib/rails/commands/c
當我輸入而不是返回「假」,我得到以下輸出像在我的rails控制檯person.valid?,: NameError: undefined local variable or method `person' for main:Object
from (irb):7
from /Users/xxx/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/