Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant Mime::JSON in an admittedly older application #490

Open
dvodvo opened this issue Aug 22, 2020 · 2 comments
Open

uninitialized constant Mime::JSON in an admittedly older application #490

dvodvo opened this issue Aug 22, 2020 · 2 comments

Comments

@dvodvo
Copy link

dvodvo commented Aug 22, 2020

An Rails 4.0.0 application needs some changes. I downloaded the repository, bundled and installed.

Upon creation of the databse via the rake task, uninitialized constant Mime::JSON is being encountered.
I removed the quoted version of jBuilder installed anew and the one that got installed is 1.5.3. Yes it is still old.

Given a large number of changes to JSON handling as of 4.1, that sounds plausible.

The specific error, when attempting to start the server is:
.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/jbuilder-1.5.3/lib/jbuilder/jbuilder_template.rb:110:in <class:JbuilderHandler>

How can this matter get resolved?

@Andrew-Max
Copy link

Having the same issue

@dvodvo
Copy link
Author

dvodvo commented Sep 10, 2020

I somehow got this resolved, but am unsure of what did it, as a number of gems were unversioned and the install process pushed things past reasonable limits. Find the latest version of Gemfile.lock where jbuilder was installing properly and verify which dependencies are different.

What I do know is that I had to drop ruby version down. jbuilder has no ruby dependencies at that stage (it popped up later), but it depends on activesupport and multi_json. activesupportgem is ruby version sensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants