search for: content_test

Displaying 4 results from an estimated 4 matches for "content_test".

2006 Apr 05
5
duplicate search results
i''m using Ferret 0.9.0 with acts_as_ferret (the one from svn.jkraemer.net), and i''m getting duplicate results, as described in this thread: http://rubyforge.org/pipermail/ferret-talk/2005-December/000048.html is there a way to configure the indexes created by acts_as_ferret to use :key => :id, as described in that thread? i''ve poked around in the code, and had
2006 Jun 23
1
''Series'' Pluralization
...inflect.singular /^(ox)en/i, ''\1'' # inflect.irregular ''person'', ''people'' inflect.uncountable %w( series ) end Everything seems to work alright except for my tests. nevans@bell:/var/www2/freepets/test/unit$ ls content_series_test.rb content_test.rb user_test.rb nevans@bell:/var/www2/freepets/test/fixtures$ ls content_series.yml contents.yml users.yml nevans@bell:/var/www2/freepets$ rake test:units (in /var/www2/freepets) /usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" &quot...
2006 Feb 28
14
Multiple Models w/ acts_as_ferret
I have multiple models all with: acts_as_ferret :fields => [...] (models = profiles, blogs, comments ) When I restart the server and perform any crud operation on one of the above models, the index is created/updated. If I then go and perform any crud operation on ANOTHER model, ...the index from that first model is being updated. Any ideas? Can acts_as_ferret handle this? Thanks
2006 Aug 30
7
AAF Sorting by date - what am I doing wrong?
I''m trying to sort my search results by Date, in descending order. I''ve done quite a bit of reading through the forums here, and I''ve tried two different suggestions. This just returns results in the same order as a search without a sort: sort_fields = [] sort_fields << Ferret::Search::SortField.new("ferret_created_at",:reverse => :true)