Question: Cant load a class model in my main app sinatra controller, unless I require it

Question

Cant load a class model in my main app sinatra controller, unless I require it

Answers 0
Added at 2017-01-05 14:01
Tags
Question

I´m building a sinatra app and when I call an instance of a model class in my, main app controller it says: NameError at /play uninitialized constant RPS::Game, unless I require the Game model in my app controller. Why does it happen?

Answers
Source Show
◀ Wstecz