0
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'
上面是我每次嘗試生成遷移時收到的錯誤。我如何克服這個問題,或者我會在哪裏開始調試?我似乎無法爲我的導軌應用程序生成遷移,我如何才能通過此錯誤?
看起來你已經部分安裝了[Simple Form](https://github.com/plataformatec/simple_form)。如果您在項目中使用簡單表單,請嘗試將'gem'simple_form''添加到'Gemfile'中,然後運行'bundle install'。如果您不使用簡單表單,請嘗試從您的Rails項目中刪除'config/initializers/simple_form.rb'文件。 –
嗨菲爾,我刪除了,然後添加簡單的形式到應用程序,並解決了問題。謝謝。多謝。 – rememberThis123
這應該是一個答案,而不是評論。 –