Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

uninitialized constant ActiveModel::SerializerSupport #588

Open
benjaminh opened this issue Aug 29, 2016 · 3 comments
Open

uninitialized constant ActiveModel::SerializerSupport #588

benjaminh opened this issue Aug 29, 2016 · 3 comments

Comments

@benjaminh
Copy link

When I try to start the server rails s, I get the following error :

/home/user/.rvm/gems/ruby-2.1.5@scribe/gems/mongoid-serializer-0.0.5/lib/mongoid/serializer.rb:6:in `configure!': uninitialized constant ActiveModel::SerializerSupport (NameError)
    from /home/user/.rvm/gems/ruby-2.1.5@scribe/gems/mongoid-serializer-0.0.5/lib/mongoid/serializer.rb:31:in `<top (required)>'
    from /home/user/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.7.6/lib/bundler/runtime.rb:85:in `require'
    from /home/user/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.7.6/lib/bundler/runtime.rb:85:in `rescue in block in require'
    from /home/user/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.7.6/lib/bundler/runtime.rb:68:in `block in require'
    from /home/user/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `each'
    from /home/user/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `require'
    from /home/user/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.7.6/lib/bundler.rb:133:in `require'
    from /home/user/Documents/MSH/RECITAL/scribeAPI/config/application.rb:12:in `<top (required)>'
    from /home/user/.rvm/gems/ruby-2.1.5@scribe/gems/railties-4.0.13/lib/rails/commands.rb:74:in `require'
    from /home/user/.rvm/gems/ruby-2.1.5@scribe/gems/railties-4.0.13/lib/rails/commands.rb:74:in `block in <top (required)>'
    from /home/user/.rvm/gems/ruby-2.1.5@scribe/gems/railties-4.0.13/lib/rails/commands.rb:71:in `tap'
    from /home/user/.rvm/gems/ruby-2.1.5@scribe/gems/railties-4.0.13/lib/rails/commands.rb:71:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

mongoid-serializer is installed, and I did not get errors during previous setup steps (except those indicated in #587 that I managed to get rid of on an Ubuntu 14.04 64 bits distro)

@qjhart
Copy link

qjhart commented Sep 20, 2016

FWIW I had a similar issue on an installation. I downgraded model_active_serializers (originally 0.10.0), and that seemed to fix the problem

$ grep serializer Gemfile
gem 'active_model_serializers', '~>0.9.4'
gem 'mongoid-serializer', '~>0.0.5'

@benjaminh
Copy link
Author

That did fix the problem. Thank you !

qjhart added a commit to qjhart/scribeAPI that referenced this issue Sep 23, 2016
@ztsuperman
Copy link

@qjhart Thanks bro! You saved my website.

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

No branches or pull requests

3 participants