Linked Questions

Popular Questions

Stack level too deep after installing ruby on rails?

Asked by At

When I do:

rails g models xxxx

I get an error that says Stack level too deep. And when I do:

rails g model ModelName

I get the following error:

/Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
Traceback (most recent call last):
    5532: from bin/rails:8:in <main>'
    5531: from bin/rails:8:in require'
    5530: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/railties-4.2.3/lib/rails/commands.rb:17:in `<top (required)>'
    5529: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in run_command!'
    5528: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:50:in generate'
    5527: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:128:in generate_or_destroy'
    5526: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
    5525: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/railties-4.2.3/lib/rails/application.rb:328:in `require_environment!'
     ... 5520 levels...
       4: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       3: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       2: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       1: from /Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>'
/Users/kenkuts/.rvm/gems/ruby-2.5.3/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:131:in block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)

My question is that I can't generate files when I create them and I don't know why.

Related Questions