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 methodmap’ for nil:NilClass (NoMethodError)

please write down here full error.
and the output of
gem env

On Wed, Nov 24, 2010 at 5:01 PM, Priyanka P.
[email protected]wrote:

activate': undefined method map’ for nil:NilClass (NoMethodError)
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks:
Rajeev sharma
+919013155133

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:

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 `’

rails -v ?

On Wed, Nov 24, 2010 at 5:19 PM, Priyanka P.
[email protected]wrote:

  • GEM PATHS:

`activate’

You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to

[email protected][email protected]

.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks:
Rajeev sharma
+919013155133

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

On Wed, Nov 24, 2010 at 6:17 PM, Priyanka P.
[email protected]wrote:

[email protected][email protected]

.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks:
Rajeev sharma
+919013155133

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?

Could you add this line

puts @loaded_stacks.inspect; puts 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”?

On Wed, Nov 24, 2010 at 6:22 PM, rajeevsharma86
[email protected]wrote:


http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks:
Rajeev sharma
+919013155133


Thanks:
Rajeev sharma
+919013155133

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

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

On Wed, Nov 24, 2010 at 6:45 PM, Priyanka P.
[email protected]wrote:

[email protected][email protected]

.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks:
Rajeev sharma
+919013155133