pierrederome
2008-Feb-28 08:28 UTC
trying to index comments with acts_as_ferret and acts_as_commentable
i have a model that is commentable. I want to index the comments with
ferret like so:
acts_as_commentable
acts_as_ferret :fields =>
[:title, :tag_list, :description, :pseudo, :assetcomment]
def assetcomment
self.comments.each { |c|
comment << c.comment
}
return comment
end
it won''t index anything.
If however, I change to:
def assetcomment
return self.comments[0].comment
end
it will index the first comment.
I''ve deleted the index folder and so on...
I''ve been going circles and googling for a while on this, any advice
would be much appreciated...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---