Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

NoMethodError for ActiveRecord

#1320

I created 3 models that are each related to each other, a playlist model, an artist model, and a song model. In my controller, there is no issue to create a new entry in the Playlist table, but when I attempt to do the same in the Artist, or Song table, a no method error is raised:

undefined method create' for UploadController::Artist:Class

I am terribly confused as to how this is possible because there should be no difference between the three models, and how the controller interacts with them should there?

If anyone can help, I would greatly appreciate it, thanks!

Reported by cdubd · November 3rd, 2008 @ 02:24 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
    Frederick Cheung
    • State changed from new to invalid

    December 8th, 2008 @ 03:11 PM