search for: class_index_dir

Displaying 5 results from an estimated 5 matches for "class_index_dir".

2006 Apr 20
2
index_dir path
...AILS_ENV (ie in the parent directory of each of my root directories ... I have three apps working together) In the acts_as_ferret file, I have changed line 73 to: index_base = "#{RAILS_ROOT}/../index" In my console, I can see that the new path is reflected properly. >> MyModel.class_index_dir => "./script/../config/../config/../../index/development/MyModel" However, the index is STILL placed in the default location of RAILS_ROOT/index/RAILS_ENV Any ideas .... ? Thanks Joerg -- Posted via http://www.ruby-forum.com/.
2006 Dec 16
10
Getting "ArgumentError ( isn''t a valid directory argument.
I''m hoping someone has encountered this before. I''m using AAF trunk and trying to multi_search across 2 models. It works fine on my windows (Webricks) dev env but now that i''ve deployed to linux, (Apache, FastCGI) I''m getting the following error: ArgumentError ( isn''t a valid directory argument. You should use either a String or a Directory):
2006 May 24
10
Ferret slow after a while
...Code in question: ENV[''RAILS_ENV''] ||= ''development'' puts "Environment : #{ENV[''RAILS_ENV'']}" require ''config/environment.rb'' require ''ferret'' index = Ferret::Index::Index.new( :path => Node.class_index_dir, :create => true) Node.find_all_by_type("PageNode").each { |content| puts "ID: #{content.id} => name: #{content.title}" index << content.to_doc if content.respond_to?("to_doc") } index.flush index.optimize index.close -- Posted via http://www.ruby-fo...
2005 Dec 02
43
ANN: acts_as_ferret
Hi all This week I have worked with Rails and Ferret to test Ferrets (and Lucenes) capabilities. I decided to make a mixin for ActiveRecord as it seemed the simplest possible solution and I ended up making this into a plugin. For more info on Ferret see: http://ferret.davebalmain.com/trac/ The plugin is functional but could easily be refined. Anyway I want to share it with you. Regard it as a
2005 Dec 02
43
ANN: acts_as_ferret
Hi all This week I have worked with Rails and Ferret to test Ferrets (and Lucenes) capabilities. I decided to make a mixin for ActiveRecord as it seemed the simplest possible solution and I ended up making this into a plugin. For more info on Ferret see: http://ferret.davebalmain.com/trac/ The plugin is functional but could easily be refined. Anyway I want to share it with you. Regard it as a