Guys,
I've got a controller called "ResourcesController", but its really managing the CRUD for two different models.
I don't actually have a model called Resource, so the controller is balking that it can't find it.
Is there a way I can inform the controller which model I'll be working with so it doesn't freak out?
The error that is posted is this:
NameError in ResourcesController#new
uninitialized constant Resource
Here is the controller at the moment:
class ResourcesController < ApplicationController
def new
end
end
Thanks,
Joe