Giter Site home page Giter Site logo

Crash in rails generate super_scaffold: active_support/inflector/methods.rb:290:in `constantize': uninitialized constant ApiToken (NameError) about bullet_train HOT 2 CLOSED

ndbroadbent avatar ndbroadbent commented on June 30, 2024
Crash in rails generate super_scaffold: active_support/inflector/methods.rb:290:in `constantize': uninitialized constant ApiToken (NameError)

from bullet_train.

Comments (2)

ndbroadbent avatar ndbroadbent commented on June 30, 2024 1

Oh it also happens for token_id:

rails generate super_scaffold Service Team service_name:super_select enabled:boolean token_id:text_field token_secret:password_field
WARNING: Use strings for Figaro configuration. true was converted to "true".
/Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/activesupport-7.1.3.3/lib/active_support/inflector/methods.rb:290:in `const_get': uninitialized constant Token (NameError)

      Object.const_get(camel_cased_word)
            ^^^^^^^^^^
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/activesupport-7.1.3.3/lib/active_support/inflector/methods.rb:290:in `constantize'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/activesupport-7.1.3.3/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/bullet_train-super_scaffolding-1.7.8/lib/scaffolding/script.rb:146:in `block in check_required_options_for_attributes'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/bullet_train-super_scaffolding-1.7.8/lib/scaffolding/script.rb:91:in `each'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/bullet_train-super_scaffolding-1.7.8/lib/scaffolding/script.rb:91:in `check_required_options_for_attributes'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/bullet_train-super_scaffolding-1.7.8/lib/bullet_train/super_scaffolding/scaffolders/crud_scaffolder.rb:62:in `run'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/bullet_train-super_scaffolding-1.7.8/lib/scaffolding/script.rb:212:in `<main>'
	from <internal:/Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/kernel.rb:34:in `require'
	from /Users/ndbroadbent/.local/share/mise/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/bullet_train-super_scaffolding-1.7.8/lib/bullet_train/super_scaffolding.rb:29:in `run'

I think this is a duplicate of #1456

from bullet_train.

jagthedrummer avatar jagthedrummer commented on June 30, 2024

Yep, definitely a duplicate of #1456 (which will hopefully be fixed soon).

from bullet_train.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.