Forum: Ruby on Rails Removed edge rails but cannot find installed rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B2969ce4f044f9f0a2f056d7264f68a7?d=identicon&s=25 James B. (byrnejb)
on 2008-11-06 00:50
I removed edge-rails from a project, git rm, committed and pushed the
revised project to the shared repository, and then git pulled it onto my
Windows XPpro laptop.

Both the original host and my laptop have Rails-2.2.0RC1 installed.  The
Gem environment is:

$ rails --version
Rails 2.2.0

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.1
  - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby.exe
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-cygwin
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.8
     - /cygdrive/c/Documents and Settings/byrnejb/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/

As you can see, I have the cygwin environment on my laptop.

Now, when I try and run rake or start the mongrel server script I see
this error:

$ rake rails:unfreeze
(in /cygdrive/c/Documents and Settings/byrnejb/My Documents/My
Projects/ca.harte
-lyne.system/proforma.git)
rake aborted!
no such file to load -- /cygdrive/c/Documents and Settings/byrnejb/My
Documents/
My
Projects/ca.harte-lyne.system/proforma.git/config/../vendor/rails/railties/li
b/initializer
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2349:in
`raw_load_rakefile'
(See full trace by running task with --trace)


$ script/server
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_requi
re': no such file to load --
./script/../config/../vendor/rails/railties/lib/ini
tializer (LoadError)
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `requi
re'
        from ./script/../config/boot.rb:45:in `load_initializer'
        from ./script/../config/boot.rb:38:in `run'
        from ./script/../config/boot.rb:11:in `boot!'
        from ./script/../config/boot.rb:109
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_o
riginal_require'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `requi
re'
        from script/server:2


This shows that despite removing vendor/rails my laptop installation is
still trying to load from it.  How do I fix this?
B2969ce4f044f9f0a2f056d7264f68a7?d=identicon&s=25 James B. (byrnejb)
on 2008-11-06 01:22
James Byrne wrote:
> I removed edge-rails from a project, git rm, committed and pushed the
> revised project to the shared repository, and then git pulled it onto my
> Windows XPpro laptop.
...
>
> This shows that despite removing vendor/rails my laptop installation is
> still trying to load from it.  How do I fix this?

Remove the directory ./vendor/rails

Problem solved!
This topic is locked and can not be replied to.