This project is archived and is in readonly mode.
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
-
Frederick Cheung December 8th, 2008 @ 03:11 PM
- State changed from new to invalid
User error ( see http://groups.google.com/group/r... )
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>