哪位大侠快救救我啊! 这个问题应该如何解决? 我快不行了
When I try to create a new rails project in Aptana Studio, I get this error:
c:\ruby\bin\rails:9:in `require': IO error -- rubygems (LoadError)
from c:\ruby\bin\rails:9
Furthermore,there is a dialogue box says "Resource /projectname/public does not exist."
The following are the contents of the rails:
#!c:/ruby/bin/ruby.exe
#
# This file was generated by RubyGems.
#
# The application 'rails' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
ARGV.shift
end
gem 'rails', version
load 'rails'
我是新手,我实在不知道这应该怎么处理了,上网查也没有,自己也不知道如何解决.
求高手赐教,在下先谢过了.
[解决办法]
1、先检查你的ruby ,rails 是什么版本的。确定你的rails 安装了与否(gem list)
2、看你的rails project 需要什么版本的,与之对应即可。
3、Aptana Studio创建项目没有接触过,你可以在命令行下,输入rails 你的项目名,试试能否创建。
[解决办法]
aptana里设置ruby、rails等路径是否正确?
1、首选项 -- Ruby -- Installed Interpreters,确保里面有一个指向ruby目录的项。
2、首选项 -- ruby --rake,指向{RUBY安装目录}\bin\rake
3、首选项 -- Rails ,将rails的path设置为{RUBY安装目录}\bin\rails
如果这些都正确,那就需要提供更多的信息了。
[解决办法]
装个netbeans。开发就是效率