0
votes

Getting the below stack error when trying to run the above from the Ruby on Rails Tutorial

rails generate scaffold User name:string email:string

/gems/ruby-2.6.3/gems/activesupport-4.2.2/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in ': stack level too deep (SystemStackError)

Was having another issue previously which lead me to making the app again from scratch, but now I can't solve this

results should invoke and create what looks like some scaffold files

1

1 Answers

2
votes

From that error message, you seem to be using Rails 4.2.2 and Ruby 2.6.3. Using those two versions together is not supported.

Rails 4.2 only supports Ruby versions up to 2.4.5. See the travis.yml on the 4.2 branch to see what's supported.

Try either downgrading your Ruby version or upgrading your Rails version so that they're compatible.