Displaying 1 result from an estimated 1 matches for "backend_menu".
2012 Jun 07
2
load_missing_constant: Expected to define class in module
...fined in
modules.
To be more precise I''ve created several files that define classes in the
AppBase module like:
module AppBase
class BackendMenu
[content omitted]
end
end
When a page tries to use the BackendMenu class like AppBase::BackendMenu
I get an error saying "Expected backend_menu.rb to define BackendMenu
(load error)", but if reload the page the error no longer displays and
the application works as it''s supposed to.
The same thing happens to all the other files. Basically I need to
reload the page for each class I''m using, but after they''ve...