Xcode 4 是否支持 ruby​​-on-rails? [英] Does Xcode 4 support ruby-on-rails?

查看:30
本文介绍了Xcode 4 是否支持 ruby​​-on-rails?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 4 是否支持 rails 项目?如果是这样,到什么程度?

Does Xcode 4 have support for rails projects? If so, to what extent?

UPDATE - 显然它可以让您编辑文本文件.但是它是否为您提供了任何 IDE 功能,例如语法高亮、导航到声明、代码完成等......?

UPDATE - Obviously it lets you edit text files. But does it give you any IDE features, e.g. syntax highlighting, navigation to declarations, code completion, etc... ?

推荐答案

我支付了安装 XCode 4 的费用,认为将我的所有开发整合到一个 IDE 会更简单.由于内置 Mac API 文档,XCode 是默认设置.我构建了一些 MacRuby (0.10) 示例,用于解析和运行.

I paid up to intall XCode 4 thinking that it would be simpler to consolidate all my development to a single IDE. XCode is the default because of the built in Mac API docs. I built a few MacRuby (0.10) samples, which parse and run.

问题是:

  1. XCode 坚持使用//来注释行,然后不解析.
  2. 没有针对 Ruby 文件的调试,仅针对 Objective C 包装器存根.
  3. 没有针对机架、导轨或脚本类型应用的应用内运行".
  4. 语法解析仅限于关键字、字符串、注释和字符.
  5. XCode 无法识别 .erb 或 .yaml 文件是 html 和 ruby​​.

解决方法3.2 中的 1 和 5 用于 1 和 5,但据我所知,它们不再适用于 4.

There were workarounds for 1 and 5 in 3.2 for 1 and 5 but they no longer work with 4 as far as I can see.

从好的方面来说,OSX 和 NextStep 的文档界面非常好,MacRuby 和 UI 编辑器可以很好地协同工作,并允许捆绑桌面应用程序,这些应用程序可以独立分发或通过应用程序商店分发.我会用它来构建使用桌面 GUI 的 ruby​​ 应用程序.

On the plus side, the documentation interface to OSX and NextStep is very nice and MacRuby and the UI editor work well together and allow bundling desktop apps which can be distributed standalone or via the app store. I would use it to build ruby apps that use the desktop GUI.

对于传统的 Web 或脚本应用程序,您可以在工作区"区域裸编辑"rails 项目,然后跳到终端运行服务器或使用脚本/控制台进行调试;但就这一点而言,NetBeans 在代码内调试、自动化测试和工作流程方面仍然远远优于恕我直言.

For conventional web or scripting apps you can 'bare edit' rails projects in the 'Workspace' area and then skip to the terminal to run a server or use script/console to debug; but for this NetBeans is still far superior IMHO with in-code debugging and automated tests and workflow.

这篇关于Xcode 4 是否支持 ruby​​-on-rails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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