RubyMine 3.1 上的 Rails 2.x 应用程序 [英] Rails 2.x app on RubyMine 3.1

查看:62
本文介绍了RubyMine 3.1 上的 Rails 2.x 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经升级到 ruby​​mine 3.1,现在 ruby​​mine 将所有项目作为 rails 3 项目,但我的不是.你们中有人遇到过这个问题吗.当我尝试运行应用程序时,Ruby mine 会触发此消息

i've upgraded to rubymine 3.1 and now rubymine take all project as rails 3 project, but the mine are not. Does anybody of you face this problem. Ruby mine fires up this message, when i try to run application

运行配置错误: 找到 Rails 2.x 启动器而不是 Rails 3.x 启动器.你需要'/script/rails'启动 Rails 服务器的脚本.请根据 Rails 3.x 文档更新服务器启动器

Run configuration error: Rails 2.x launcher found instead of Rails 3.x one. You need '/script/rails' script to launch Rails server. Please update server launcher according to Rails 3.x documentation

我的最终状态是我可以从 ruby​​mine 运行 rails 2.x 应用程序服务器

My final state is i can run rails 2.x app server from rubymine

你知道如何实现吗?

推荐答案

我在使用 Rails 2.3 和 RubyMine 3.1 时遇到了这个问题——我的解决方案是查看项目设置(文件 -> 设置)并选择 Ruby SDK 和 Gems.查看您附加的导轨宝石.我的项目中同时附有 rails 2.x 和 rails 3.x gem.

I had this problem using Rails 2.3 and RubyMine 3.1 -- my solution was to look at the project settings (File -> Settings) and select Ruby SDK and Gems. Look through your attached rails gems. I had both rails 2.x and rails 3.x gems attached to my project.

这篇关于RubyMine 3.1 上的 Rails 2.x 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆