Skip to content

LoadError, "Unable to autoload constant #{qualified_name}, expected #{file_path} to define it" unless from_mod.const_defined?(const_name, false) #162

@ryanbelke

Description

@ryanbelke

I am using rails 5 and unable to get the image uploader to work. When I try to upload the image nothing shows up and if I step through with byebug I get to this error. Any idea what could be causing this? From what I am reading it is saying that module names can only have a capital first letter and the gem uses RedactorRails
'
[[507, 516] in /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb
507:
508: if loading.include?(expanded)
509: raise "Circular dependency detected while autoloading constant #{qualified_name}"
510: else
511: require_or_load(expanded, qualified_name)
=> 512: raise LoadError, "Unable to autoload constant #{qualified_name}, expected #{file_path} to define it" unless from_mod.const_defined?(const_name, false)
513: return from_mod.const_get(const_name)
514: end
515: elsif mod = autoload_module!(from_mod, const_name, qualified_name, path_suffix)
516: return mod]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions