Hi!
On Wed, Aug 09, 2006 at 01:53:21PM +0200, Dhanya wrote:> Hi,
> After updating a record i search that record by name.then i get two
> records.one is that before updation.another is the updated one.i use
> the after_save method in the model class to create index for new
> records.
> how i can solve this problem.
you have to remove the old version of the record from the ferret index.
You could have a look at acts_as_ferret for an example of how to do
this. Or you could just use acts_as_ferret ;-)
Jens
--
webit! Gesellschaft f?r neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de
Schnorrstra?e 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66