Error when trying to start server after upgrading to Rails 3

前端 未结 2 852
傲寒
傲寒 2021-01-19 06:51

I\'ve just upgraded to Rails 3, using the instructions from this railscast. When I try to start the server, this is what happens:

$ rails s
script/rails:6:in         


        
相关标签:
2条回答
  • 2021-01-19 07:15

    Maybe you can just reinstall your rubygem, or update it.

    Rubygem versions should fit to your Ruby versions. For every Ruby version you installed separated Gems needed.

    May I ask did you use any 'sudo' with RVM installations? Better to avoid, see here: http://rvm.beginrescueend.com/rubies/rubygems/

    Can you list here please your "gem list" after switched to default Ruby version you want to use? Also "rvm list" "ruby -v" "gem -v" and your OS please.

    Also wise to write to forum at the section you downloaded Railscasts' video, because maybe others will have the same problem.

    0 讨论(0)
  • 2021-01-19 07:26

    Have you actually installed the rails 3.0.x gem? Maybe you missed this step :).

    It looks like your script/rails script cannot find the included file from rails gem. You need to install all needed gems separately for each version of Ruby you're using (e.g. 1.8.7 and 1.9.2).

    0 讨论(0)
提交回复
热议问题