Rails脚手架不工作

时间:2017-11-04 13:11:11

标签: ruby-on-rails activesupport activescaffold

在我的一个RoR项目中,我运行“rails generate scaffold project title:string description:text” 在我的终端上,在这里它向我投掷了什么:

/Users/Mika/.rvm/gems/ruby-2.4.0/gems/activesupport-   5.1.4/lib/active_support/dependencies.rb:286:in `load': no implicit  conversion of nil into String (TypeError)
from /Users/Mika/.rvm/gems/ruby-2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `block in load'
from /Users/Mika/.rvm/gems/ruby-2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
from /Users/Mika/.rvm/gems/ruby-2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
from /Users/Mika/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Mika/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'

我无法弄清楚出了什么问题,我以前生成了很少的脚手架,但我无法让它在这个上工作。

有什么想法吗?

0 个答案:

没有答案