This is the first time I’m working with Engine’s in Rails, let alone
in Rails 3. I basically followed these steps to set up the mountable
Now that the mountable app is built, I’m moving on to create the
container app. In doing so, however, I am having trouble accessing the
models in the mounted app.
Shop is a model I have the the mounted app, and when I try to access
it in the container app, this is returned:
=> NoMethodError: undefined method `first’ for Shop:Module
Strangely enough, however, 3 of the mounted app’s 19 models are
accessible in the container app. Shop.class.name returns “Module”
while Employee.class.name returns “Class” (Employee is a working model
in the container app).
I’m quite lost on this. Any help is greatly appreciated!