The improved Ruby development environment in NetBeans 6.1
The NetBeans 6.1 Chinese version, released early this month, offers a number of new and extended features such as high-performance, JavaScript Editor extensions, Spring framework unification, and Easy-to-use MySQL support. For more information about new and extended features of NetBeans 6.1, see the following:
NetBeans IDE 6.1 Information: http://www.netbeans.org/community/releases/61/index_zh_CN.html
You can download the relevant software from the download site, each feature has a corresponding installation program:
NetBeans 6.1 Download http://zh-cn.netbeans.org/download/6.1/ml/
Install the JDK prior to installing NetBeans, see part 1th, Introduction:
The 1th part, foreword: http://developers.sun.com.cn/Java/nb6_200802.html
The performance of Ruby and Ruby on Rails has been greatly improved, and the operating environment has been greatly enhanced, for example, the JRuby version has been upgraded to 1.1, and Rails has been upgraded to 2.0.2. In this article, we'll use NetBeans 6.1来 to introduce the Ruby on Rails development environment.
Features of the Ruby/ruby on Rails development environment in NetBeans
The Ruby support provided by NetBeans is very easy to use, and the Rails environment needs to be set up. If you select the NetBeans Ruby package, the JRuby running environment and the Rails Runtime environment will be installed automatically.
NetBeans does not only support the JRuby environment, but it can be switched on if there is a Ruby running environment in NetBeans's operating system. If you use the Ruby platform manager imported by NetBeans 6.1, the Ruby Runtime environment can search for itself, log in, and switch the ruby running environment according to your project. The Ruby platform Manager, like the Java platform Manager, manages several Ruby runtime environments, which operate as follows: Tools > Ruby Platform.
Figure 1 Ruby Platform Manager
The biggest feature of NetBeans's Ruby development environment is that all operations can be done in NetBeans without running Rails commands on the command line. Updates to plug-ins such as gems and Rails are also available in the NetBeans dialog box.
The Gem Manager can perform gem installation, update, and uninstall operations on each platform. Method: "Tools" > "Ruby Gems".
Figure 2 the Gem Manager
The Rails Plugin dialog box is used to manage the available rails plug-ins, please select the Rails plugin in the Rails project context menu.
Figure 3 Rails Plug-in Manager