[Rails] Re: Migrations suddenly broken: undefined method autoload_pa

Adam rails at skippy.fastmail.fm
Mon Aug 14 19:01:46 GMT 2006


Hi Alex, is the below your full stack trace?

This happened to me, and when I ran rake with the trace, I noticed that 
it was using activerecord and activesupport from my /usr/local/lib 
folder and not my_proj/vendor/rails (which is edge rails).
Once I removed my rails installation from /usr/local/lib it worked as it 
used the activerecord and activesupport libs from vendor/rails.

Rails folks, what is the best way to totally remove a dependency on 
one's /usr/local/lib binary and instead use the rails version in 
my_proj/vendor/lib.

Thanks in Adv.
Adam

> 
> [root at magneticworldinc mw]# rake db:migrate --trace
> (in /home/magneticworld)
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> rake aborted!
> undefined method `autoload_paths=' for Dependencies:Module
> /home/magneticworld/config/../vendor/rails/railties/lib/initializer.rb:131:in 
> `set_autoload_paths'
> /home/magneticworld/config/../vendor/rails/railties/lib/initializer.rb:83:in 
> `process'
> /home/magneticworld/config/../vendor/rails/railties/lib/initializer.rb:42:in 
> `run'
> /home/magneticworld/config/../config/environment.rb:10


-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list