Displaying 2 results from an estimated 2 matches for "ensure_directory".
2007 Apr 09
2
Errno::EACCES in Controller / Permission denied
...eutils.rb:215:in `reverse_each''
/usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p''
/usr/local/lib/ruby/1.8/fileutils.rb:201:in `each''
/usr/local/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:95:in
`ensure_directory''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/act_methods.rb:131:in
`acts_as_ferret''
#{RAILS_ROOT}/app/models/review.rb:8
#{RAILS_ROOT}/app/controllers/display_controller.rb:6:in
`get_published_reviews''
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir''
/usr...
2007 Feb 14
0
acts as ferret creates redundant default index directory?
Hi
I''m using a non-default index directory (acts_as_ferret :index_dir
option) but the unused default (./index/) is still created at load
time.
The culprits are the two calls to ensure_directory in the
init_index_basedir method in acts_as_ferret.rb that seem to be
redundant. Removing the calls to init_index_basedir fixes the problem
with no apparent side effects.
Cheers, Stuart
--
Posted via http://www.ruby-forum.com/.