search for: last_addition

Displaying 1 result from an estimated 1 matches for "last_addition".

2005 Dec 21
0
Ferret and Rails transaction
...:table], :path => "#{RAILS_ROOT}/db/index.test", :auto_flush => true) begin Listing.transaction(@ad) do @ad.listings << @listing if @ad.save session[:last_addition] = @ad.id #ferret create a new entry in the index doc = Ferret::Document::Document.new doc << Ferret::Document::Field.new("id", @ad.id, Document::Field::Store::YES, Document::Field::Index::UNTOKENIZED) doc << Ferret::Document:...