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) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
please write down here full error. and the output of gem env On Wed, Nov 24, 2010 at 5:01 PM, Priyanka Pathak <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> 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) > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma +919013155133 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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>'' -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
rails -v ? On Wed, Nov 24, 2010 at 5:19 PM, Priyanka Pathak <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> 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>'' > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma +919013155133 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I am using rails version 3.0.3 and ruby 1.9.2.p0 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Pathak <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> I am using rails version 3.0.3 and ruby 1.9.2.p0 > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma +919013155133 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 <rajeevsharma86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> 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 Pathak <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > >> I am using rails version 3.0.3 and ruby 1.9.2.p0 >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > Thanks: > Rajeev sharma > +919013155133 > >-- Thanks: Rajeev sharma +919013155133 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Pathak <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> 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? > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma +919013155133 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.