help - error loading....

hi, what is my rails missing here?

/usr/local/lib/site_ruby/1.8/rubygems.rb:270:in `activate': undefined method `map' for nil:NilClass (NoMethodError)        from /usr/local/lib/site_ruby/1.8/rubygems.rb:296:in `activate'        from /usr/local/lib/site_ruby/1.8/rubygems.rb:295:in `each'        from /usr/local/lib/site_ruby/1.8/rubygems.rb:295:in `activate'        from /usr/local/lib/site_ruby/1.8/rubygems.rb:296:in `activate'        from /usr/local/lib/site_ruby/1.8/rubygems.rb:295:in `each'        from /usr/local/lib/site_ruby/1.8/rubygems.rb:295:in `activate'        from /usr/local/lib/site_ruby/1.8/rubygems.rb:68:in `gem'        from ./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:32:in `add_load_paths'        from /opt/rails/billoflading/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/inflector.rb:283:in `to_proc'        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:241:in `each'        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:241:in `add_gem_load_paths'        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:115:in `process'        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in `send'        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in `run'        from /opt/rails/billoflading/config/environment.rb:13        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'        from /opt/rails/billoflading/vendor/rails/railties/lib/commands/generate.rb:1        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'        from script/generate:3

this happened after installing another gem. prior that one the server / the other rails-apps are running fine...

thx

hi, what is my rails missing here?

[snip]

this happened after installing another gem. prior that one the server / the other rails-apps are running fine...

Can you specify which gem you installed? The only explanation I can think of is that it's specifying an explicit dependency on an earlier version of Rails, and we aren't correctly stubbing @loaded_stacks for the vendor/rails versions.

--Matt Jones

well i had a standard up2dat rails installation up to this point.

the "error" came after installing them restfulx gem, and putting it into environment.rb.

im just unsure, coz i did this several times on other test machines and it was just working fine...unless i forgot something else again like some dev-libraries or other things. any ideas?

thx tom

well i had a standard up2dat rails installation up to this point.

the “error” came after installing them restfulx gem, and putting it

into environment.rb.

im just unsure, coz i did this several times on other test machines

and it was just working fine…unless i forgot something else again

like some dev-libraries or other things.

any ideas?

thx tom

Have you tried removing the problem gem and testing to see if the problem goes away?

Anuj

yes, and the server starts up fine thx

Took a minute to track down when this code appeared on this line.

It would have been helpful to know that you're running 2.1.0 in vendor/rails... I don't think it's going to work well for you, as the 2.1.x gem loader has known issues with loading gems that depend on Rails gems while running from vendor/rails. See these tickets for more details:

https://rails.lighthouseapp.com/projects/8994/tickets/1107 https://rails.lighthouseapp.com/projects/8994/tickets/1123

Hope this helps.

--Matt Jones

matt, thx for ur help - but to b honest - im not sure what to do now...can u give me a hint what i should uninstall and what to install?

thx so much! tom

That depends - if the app you're trying to add RestfulX to is actually intended to run with 2.1.1, I'd say you're pretty much stuck. The other option would be to zap the old vendor/rails and try running against 2.3.5. I suspect the latter is going to cause some pretty serious problems if the app is 2.1.x-era.

--Matt JOnes