This project is archived and is in readonly mode.

#1320 ✓invalid
cdubd

NoMethodError for ActiveRecord

Reported by cdubd | November 3rd, 2008 @ 02:24 PM | in 2.x

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!

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages