Problem to start rails 3 based application

Hello,
   I need urgent help. When i run rails application with rails 3.0.3 and
ruby version 1.9.2p0. i get the below error. can anyone guide me what's
i missed?

rails s
/home/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/script_rails_loader.rb:11:
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/home/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:228:in
`activate': undefined method `map' for nil:NilClass (NoMethodError)

please write down here full error.

and the output of

gem env

This is the output of gem env.
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/.rvm/gems/ruby-1.9.2-p0
  - RUBY EXECUTABLE: /home/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
  - EXECUTABLE DIRECTORY: /home/.rvm/gems/ruby-1.9.2-p0/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/.rvm/gems/ruby-1.9.2-p0
     - /home/.rvm/gems/ruby-1.9.2-p0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

Full error:

rails s
/home/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:228:in
`activate': undefined method `map' for nil:NilClass (NoMethodError)
  from /home/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:254:in
`block in activate'
  from /home/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:in
`each'
  from /home/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:in
`activate'
  from
/home/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:1119:in
`try_activate'
  from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
  from <internal:lib/rubygems/custom_require>:29:in `require'
  from script/rails:6:in `<main>'

rails -v ?

I am using rails version 3.0.3 and ruby 1.9.2.p0

you are using rails 3.0.3 and ruby 1.9.2.p0

and please can you tell me the application version which you have to run is that also on rails 3 or on the lower version

Could you add this line

puts @loaded_stacks.inspect; puts [gem.name](http://gem.name)

right above line /home/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:228, run this again, and paste the output here. Also, could you give us the output of “gem list”?

Here is the output of @loaded_stacks.inspect
{"railties"=>[], "rake"=>[#<Gem::Specification name=railties
version=3.0.3>], "thor"=>[#<Gem::Specification name=railties
version=3.0.3>]}

gem.name gives
activesupport

My original application is on rails version 2.3.x but i need to run with
rails 3.0.3 and ruby 1.9.2p0.

which thing i am missing?

you are using rvm please install ruby of lower version
can be 1.8.7 if your config/enviroment.rb show rails version is > 2.3.2
else 1.8.6

then install rails 2.3.X as you required

gem install -v 2.3.x rails

Hi,
     I have solved the issue. and also blog the steps which may help
you to upgrade existing rails application to rails 3.x.

http://priyankapathak.wordpress.com/2010/12/13/upgrade-existing-ruby-on-rails-application-with-rails-3-0-0-and-ruby-1-9-2p0/