IronRuby 与常规 Ruby,在 Windows 上开发 Rails 应用程序
对于非 Rails 工作,常规 Ruby 在我的 Windows 7 机器上运行良好。
但我即将开始一些使用 SQL Server 作为数据库的 Rails 工作,到目前为止,尝试设置 Rails 一直是一件非常痛苦的事情。 (我仍然无法让 sqlite3 或 SQL Server 与 Rails 一起正常工作。)
所以我想知道:使用 IronRuby(我以前没有使用过)是否会使在 Windows + SQL Server 上使用 Rails 的整个过程成为一个简单的过程。容易多了?我对 .NET 集成或最新的 Rails 功能并不是很感兴趣,我只想要在 Windows 上运行并且可以访问 SQL Server 的东西。
For non-Rails work, regular Ruby works fine on my Windows 7 machine.
But I'm about to start some Rails work that will use SQL Server as a database, and trying to get Rails set up has been a total pain so far. (I still can't get sqlite3 or SQL Server to work correctly with Rails yet.)
So I'm wondering: will using IronRuby (which I haven't used before) make the whole process of using Rails on Windows+SQL Server a lot easier? I'm not terribly interested in .NET integration or the latest Rails features, I just want something that runs on Windows and that can access SQL Server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
正如其他人所说 - IronRuby 不会让您的生活变得更轻松。在这种情况下,这会让事情变得更加困难,因为在 IronRuby 上启动和运行 Rails 需要做更多的工作,并且您将失去本机扩展支持。
我白天是一名 .NET 开发人员,晚上则在 Windows 上进行 Rails 开发。我对 Rails 或 SQLite 核心的问题为零(尽管我不使用 SQL Server)。有关如何让 Rails 工作(包括如何让 SQLite 工作)的好教程,请参阅此链接:
http://accidentaltechnographer.com/ruby-on-rails/running-rails-3-on-windows/
SQLite安装很简单,但并不明显。
like everyone else said - IronRuby won't make your life easier. it will make it more difficult in this case, because it take a lot more work to get rails up and running on IronRuby and you will lose out on native extension support.
I'm a .NET developer by day, and I do Rails development on Windows at night. I have zero issues with the core of rails or SQLite (I don't use SQL Server, though). for a good tutorial on how to get Rails working, including how to get SQLite working, see this link:
http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/
the SQLite installation is simple, but not obvious.
我想知道你在 Windows 上使用什么 Ruby。之所以提出这个问题,是因为我们在 RubyInstaller 上投入了大量时间和工作,以提供二进制文件和补充的 开发套件,用于简化需要编译的 gem 的安装。
我建议您查看 wiki 中的教程页面,了解一些有关使用 MS 的文章SQL with Cucumber、设置 sqlite3-ruby 等。
希望这有帮助。
I'm wondering what are you using as Ruby on Windows. Asking this because we invested a lot of time and work on RubyInstaller to provide binaries and a complementary Development Kit to ease installation of gems that require compilation.
I would recommend you look at our Tutorials page in our wiki for some articles about using MS SQL with Cucumber, setting up sqlite3-ruby and others.
Hope this helps.
IronRuby 不会让您的过程变得更容易,您应该知道您想要使用的任何 gem 都必须是纯 Ruby,因为 IronRuby 不支持需要本机扩展的 gem。
使用 IronRuby 的唯一充分理由是使用 .Net 支持。
IronRuby will not make the process any easier for you, and you should be aware that any gems you want to use will have to be pure Ruby, since IronRuby won't support gems which require native extensions.
The only good reason for using IronRuby is to use the .Net support.
如果 IronRuby 是唯一支持 SQL Server 的产品,那么,是的,使用它将是您最好的选择。除此之外,它的运行速度往往比其他 impl 慢一些...jruby 在打瞌睡时可以很好地工作...
if IronRuby is the only one that supports SQL Server, then, yes, using it would be your best bet. Other than that it tends to run rails a bit slower than other impl's...jruby can work well on doze...
您是否尝试过 activerecord-sqlserver-adapter gem?我在 Linux 上使用它,但我猜它在 Windows 上应该更容易使用。显然它适用于 MRI Ruby 和 IronRuby。
Have you tried the activerecord-sqlserver-adapter gem? I'm using it on Linux, but I'm guessing it should be easier to use on Windows. Apparently it works on both MRI Ruby and IronRuby.
您应该使用 activerecord-sqlserver-adapter gem。
看看 http://github.com/rails-sqlserver/activerecord-sqlserver-adapter< /a> 获取安装帮助,您也可以搜索 google group Rails SQLServer Adapter 以获取更多信息。
You should use the activerecord-sqlserver-adapter gem.
Look at http://github.com/rails-sqlserver/activerecord-sqlserver-adapter for installation help and you may search the google group Rails SQLServer Adapter for some more information too.