A:/Dev/Web/private_app/config/initializers/simple_form.rb:2:in`<top (required)>': uninitialized constant SimpleForm (NameErr
or)
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/engine.rb:648:in `block in load_config_initializ
er'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.1.8/lib/active_support/notifications.rb:161:in `instrumen
t'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/engine.rb:647:in `load_config_initializer'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/engine.rb:612:in `block (2 levels) in <class:Eng
ine>'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/engine.rb:611:in `each'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/engine.rb:611:in `block in <class:Engine>'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializer
s'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from e:/Dev/Rails/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
以上是我每次尝试生成迁移时收到的错误。我如何通过这个或在哪里开始调试?
答案 0 :(得分:0)
您似乎已部分安装Simple Form。
如果您在项目中使用Simple Form,请尝试将gem 'simple_form'
添加到Gemfile中,然后运行bundle install
。如果您不使用简单表单,请尝试从Rails项目中删除config/initializers/simple_form.rb
文件。