Friday, April 9, 2010

RAILS - tarantula

Tarantula and excellent rails fuzzy spider. But its doc sucks..

The docs advise to unpack the gem into the vendors dir... and then add this the rake file

load File.join(RAILS_ROOT, Dir["vendor/gems/tarantula-*/tasks/*.rake"])

Dont unpack it. Total waste of space and time... load it from the gem install location it like this

tarantula_path =  Gem::required_location("tarantula", "")
if tarantula_path
  Dir[ File.join(tarantula_path, "..","tasks","*.rake") ].each { 
    |rakefile| load rakefile 
  }
end

No comments:

Post a Comment