Code Monkey home page Code Monkey logo

Expected /app/app/controllers/api/v1/base_controller.rb to define Api::V1::BaseController vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:503:in `load_missing_constant' about apipie-rails HOT 3 CLOSED

barmstrong avatar barmstrong commented on May 23, 2024
Expected /app/app/controllers/api/v1/base_controller.rb to define Api::V1::BaseController vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:503:in `load_missing_constant'

from apipie-rails.

Comments (3)

barmstrong avatar barmstrong commented on May 23, 2024 1

This fixed it:

config.reload_controllers = !Rails.env.production?

Or just removing the line, since it is already set to be true in dev and false in production by default. Thanks for the tip!

from apipie-rails.

iNecas avatar iNecas commented on May 23, 2024

That's strange. Any changes in Rails stack? What version did work for you? Please try to set config.reload_controllers = false to see if anything changed.

from apipie-rails.

barmstrong avatar barmstrong commented on May 23, 2024

Reverting to 0.0.11 was what fixed it. So must be some difference in between those versions.

Setting reload_controllers to false seemed not let us load the page at all. Sorry I was not clear on how that part was supposed to work in development?

Made sure to kill the app servers and restart after upgrading. Very strange stuff. Btw this is on heroku also, not sure if that is related.

from apipie-rails.

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.