sure, that was just a typo in my post. Actually I've tried even to just copy user.rb from CE's models dir to my app's dir still with the same error in the end, requiring new model file from the application controller fixes it.
Bruno Bornsztein wrote: > Your user model should be in a file called 'user.rb' (note the lowercase > 'u'). > > On Mon, Sep 1, 2008 at 2:15 PM, Oleg Ivanov <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > I've found workaround - putting > > requre RAILS_ROOT+'/app/models/User.rb' > > seems to be fixing the model loading problem, though I'm still not sure > why it happens and what's the proper way of solving it. Sticking with > this hack until a better way is found. > > morhekil wrote: > > Hello. > > > > I've got problems trying to override User model in CE by copying > > user.rb file from the plugin to my own app/models directory. When > I do > > so it seems that not only my file doesn't override default CE's one, > > but CE fail to see any of them and starts complaining about missing > > methods in User model - methods those are surely there, like to_param > > or posts methods. Debugging and examining the model CE is complaning > > about I've found that it looks like a completely generic ActiveRecord > > model without any custom methods, etc. > > > > When I'm subclassing User and overriding User's method in a subclass > > everything works just fine. > > > > Anyone has any ideas why I can't just copy the model to my own app? > > > > I'm running Rails 2.1 and Ruby 1.8.6. <http://1.8.6.> > > > > > -- > Oleg Ivanov > ICQ: 69991809 > Jabber: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > > > > -- Oleg Ivanov ICQ: 69991809 Jabber: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" 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/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
