Hey Everyone,

I have been working on a project where I process an XML file that
contains data about a music playlist, and I use 3 models: Playlist,
Artist, and Song. Each model is mapped to a table in my database, and
when my app processes the XML file, it will populate the database
accordingly.

The issue I have is that the Artist class and the Song class seem to
be undefined, even though they absolutely are defined. I can interact
with the Playlist class just fine, and create new entries in the
database, but for some reason, when I try and create a new instance of
the Artist class, or the Song class I get the following error:

undefined method `create' for UploadController::Artist:Class

I decided to check this out using the Console, and I am able to create
a new instance of the Artist class, and populate the database in the
console, so the issue only resides in my web application.

Could I be missing some small piece of trivial information? I was
under the impression that I could access all of the models from any
controller I am using, but I can only access a single model at the
moment.

Any help would be great, this issue is driving me crazy.

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to