ruby - I can't seem to generate a migration for my rails app, how do I get past this error? -
a:/dev/web/private_app/config/initializers/simple_form.rb:2:in`<top (required)>': uninitialized constant simpleform (nameerr or) 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' 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' 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' 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>' e:/dev/rails/ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/engine.rb:611:in `each' 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>' 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' e:/dev/rails/ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run' 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' e:/dev/rails/ruby2.1.0/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each' e:/dev/rails/ruby2.1.0/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component' e:/dev/rails/ruby2.1.0/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from' e:/dev/rails/ruby2.1.0/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from' e:/dev/rails/ruby2.1.0/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
above error i'm receiving each time try generate migration. how past or start debug?
it looks have partially installed simple form.
if using simple form in project, try adding gem 'simple_form'
gemfile , run bundle install
. if not using simple form, try deleting config/initializers/simple_form.rb
file rails project.
Comments
Post a Comment