well maybe I'm running a wrong version of rails. I tried to make ce groups run on rails 2.3.5, before I comment that line,I recieve an error as I pasted in my prior posts. I guess it's something about the "has_many :through" mechanism.It behaves differently on 2.3.4 and 2.3.5.
..sorry for poor english (*^__^*) . BR Han 2010/1/28 Levi Rosol <[email protected]> > I noticed that you're running rails 2.3.5. Assuming you're running CE edge, > you should be on 2.3.4. If you're running master then you should be on rails > 2.3.2. > > What was the reason for commenting out that line? Without it, many things > within the groups plugin will break. > > -- > Levi Rosol > Twitter: @LeviRosol > > > > On Thu, Jan 28, 2010 at 3:22 AM, 韩铮 <[email protected]> wrote: > >> Hi again... >> I commented line 5 of >> vendor/plugins/community_engine_groups/app/models/user.rb. >> My app work well again. I can see a new tab named "Groups",but when I >> click that, it redirect me to my profile page, and shows a tip "please >> login". I saw the logs and find something like "session.new". so I guess >> there's something wrong with the session. >> I'm new to CE groups. So please help. >> >> BR >> >> Han >> >> 2010/1/28 韩铮 <[email protected]> >> >>> hi all, >>> >>> I have community_engine_groups installed with my app. >>> However, I ran in this when I visit the index of my app: >>> >>> NoMethodError (undefined method `class_name' for nil:NilClass): >>> (eval):3:in `has_many' >>> vendor/plugins/community_engine_groups/app/models/user.rb:5 >>> desert (0.5.3) lib/desert/rails/dependencies.rb:67:in >>> `define_constant_from_file' >>> >>> checked the file " >>> vendor/plugins/community_engine_groups/app/models/user.rb" on line 5,it >>> reads this: >>> >>> has_many :groups_as_owner, :through => :group_memberships, :conditions => >>> ["owner = ?", true], :dependent => :destroy >>> what can I do to fix this? I'm using rails 2.3.5 with ruby 1.8.7. >>> database migrate is ok. >>> >>> thx in advance >>> >>> Han >>> >>> 2010/1/23 Michael Hollins <[email protected]> >>> >>> >>>> On 23/01/2010, at 8:47 AM, Levi Rosol wrote: >>>> >>>> > I saw your email but forgot to reply :) >>>> >>>> No problems. Thanks Levi. I will take a look. >>>> >>>> -- >>>> 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]<communityengine%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/communityengine?hl=en. >>>> >>>> >>> >>> >>> -- >>> It's 10% luck 20% skill >>> 15% concentrated power of will >>> 5% pleasure 50% pain >>> And a 100% reason to remember the name >>> >> >> >> >> -- >> It's 10% luck 20% skill >> 15% concentrated power of will >> 5% pleasure 50% pain >> And a 100% reason to remember the name >> >> -- >> 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]<communityengine%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/communityengine?hl=en. >> > > -- > 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]<communityengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/communityengine?hl=en. > -- It's 10% luck 20% skill 15% concentrated power of will 5% pleasure 50% pain And a 100% reason to remember the name -- 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.
