0

I have installed rvm. After creation of a gemset for a new project, when i give the command rails server, it shows this error report_activate_error': Could not find RubyGem railties (>= 0) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:inactivate`

So i found a solution that i need to give the command gem install rails to install rails. Is it necessary to install rails for every new project? I am confused. Please guide me the real thing. Thanks.

Ahmad hamza
  • 1,816
  • 1
  • 23
  • 46

2 Answers2

1

Gemsets are separating environments, you need to install gems for every new gemset, if you will always use the same version of rails you can install gems in global gemset:

rvm @global do gem install rails
mpapis
  • 52,729
  • 14
  • 121
  • 158
0

Did you try "bundle install" on your project root? This could fix that error.

ricardomerjan
  • 321
  • 2
  • 7