Basically wondering how anyone else has set up comments for things
other than user profiles and blog posts.  There was another thread
where someone talked about adding comments to events, but it wasn't
very descriptive on what actually needed to be done.  Basically just
said look at the user model for an example.  I tried doing so and had
things working briefly.  Then I navigated to the profile page, and
realized there was now errors on that page, so I tried to fix them but
I think I only made things worse.  Now I am only able to post a
comment on event once and then if I try again it raises an error.  If
I restart the server it will then let me place 1 comment again before
raising an error.  So now I am looking to see if anyone else has added
comments to events or any other custom model and wondering how they
did it.

I think my errors are because I am not assigning the recipient_id on
the comment record for the comments that aren't of the
commentable_type User... It seems as though if it is keeping track of
the commentable_type it shouldn't be hard to extend to other models
than user... I was under the impression that the recipient_id would
have to be for a user, but does it?  If the commentable_type is an
event should I be placing that events id in the recipient_id field?  I
had created a new field event_id where I stored the id, but I think
the way I am doing it is just making it more complicated than it is
supposed to be...

Does that make any more sense?

On Sep 30, 2:39 am, Fritzek <[EMAIL PROTECTED]> wrote:
> I'm completely mystified about what you try to say. Both posts.
>
> On Sep 30, 2:34 am, jdutil <[EMAIL PROTECTED]> wrote:
>
> > How is the code handling @commentable exactly do I need to do
> > something special for @commentable when its not for the class user?  I
> > think the fact that I have been maybe has me making this more
> > complicated then it needs to be...
>
> > On Sep 29, 12:27 am, jdutil <[EMAIL PROTECTED]> wrote:
>
> > > I am wondering how anyone else handled doing this... I just had them
> > > working briefly, but not sure what exactly I did since then but now im
> > > getting all kinds of errors when trying to view peoples profiles or
> > > try adding more events now for some reason.  So I think I am going to
> > > try starting this from scratch again, and would appreciate anyone else
> > > solution for this that works properly.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to