English 中文(简体)
如何同时安装RAILS 2.3.5和3.0.4beta
原标题:How to have RAILS 2.3.5 and 3.0.4beta installed at the same time

为两个不同的项目建造两个不同的铁路设施。 它们是不同的铁路。 这里我已安装:

www.un.org/Depts/DGACM/index_spanish.htm

这表明我已经安装了:

<代码>铁路(3.0.0.beta4, 2.3.5)

在我指挥下进行使用2.3.5的部署时,我发现以下错误:

Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your 
RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do 
have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

尽管我已经安装了铁路,但它没有找到正确的铁路版本。 解决这一问题的短期和长期解决办法是什么?

最佳回答

我建议您RVM。 这使你能够在同一机器上拥有不同的废墟/地毯。

问题回答

长期解决办法是研究rvm,特别是gemset 特征使得不同项目的地版甚至瓦卢版本难以分开。

短期解决办法可以是,在需要铁路之前的某个地方,在你的boot子档案中增加以下线:

gem rails, "2.3.5"

否则,你会想到最新版本。

As others have noted, rvm is one way to solve this problem. The other is to use bundler, which involves some setup in your application and potentially requiring you to use bundle exec command everywhere you want to run conflicting versions of a command (eg cucumber)





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签