I am having the same error, Is it a heroku error, or the console ?? >> r.permissions << p ActiveRecord::AssociationTypeMismatch: Permission expected, got Permission >> r.users << uu ActiveRecord::AssociationTypeMismatch: User expected, got User >> p.roles << r ActiveRecord::AssociationTypeMismatch: Role expected, got Role
What's happening! and how i can get it working ? and is it only for the console? i mean will it work on the normal application ( used in controllers .. etc ). ? Cuz i am just testing my relationships for the models, and haven't started yet to build my app. Thanks In Advanced On Mar 14, 6:05 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Maybe its obvious, but it happened to me and the problem was in my > development configuration file. > Check this line: > > config.cache_classes = false > > If you have a true the classes don't reload. > > I hope it helps! > > On 19 feb, 04:36, "Adam Wiggins" <[EMAIL PROTECTED]> wrote: > > > On 2/11/08, holczer <[EMAIL PROTECTED]> wrote: > > > > ActiveRecord::AssociationTypeMismatch: Model expected, got Model > > > I looked into this a bit. I can't quite tell what's happening, but it > > doesn't appear to be Heroku-specific or have anything to do with the > > console. You might want to try boiling it down to a small test case and > > then post it to the bug tracker at dev.rubyonrails.org. > > > Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" 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/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
