NetBeans 7.3:
You can install the Ruby and Rails plugin for NetBeans 7.3.x directly from the plugin portal:
http://plugins.netbeans.org/plugin/38549
Here are some installation instructions:
https://blogs.oracle.com/geertjan/entry/ruby_on_rails_in_netbeans
NetBeans 7.2:
To install the Ruby on Rails plugin for NetBeans 7.2 add this update center in Tools -> Plugins -> Settings
:
https://blogs.oracle.com/geertjan/resource/nb-72-community-ruby.xml
Obtained from Geertjan's Blog:
https://blogs.oracle.com/geertjan/entry/ruby_in_netbeans_ide_7
Building the plugin from sources: I used and built the sources linked from Geertjan's Blog:
http://hg.netbeans.org/community-ruby
When building the plugin NetBeans (it took a very long time), I got the following error:
Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found
This can be fixed by installing ant-contrib
on your system, e.g.:
yum -y install ant-contrib
Find the JAR file (in my case it was located at /usr/share/java/ant/ant-contrib.jar
) and add it to Ant's classpath in NetBeans through Tools -> Options -> Java -> Ant -> Add JAR/ZIP
.
After that it should build. If you want to use the plugins, right-click the NB Ruby
project and click on Package As -> NBMs
. This will create an Update Center. You can add this update update center to your NetBeans via Tools -> Plugins -> Settings -> Add
where the URL should be:
file:/PathToTheRepository/build/updates/updates.xml
After that you can install the Ruby and Rails
plugin.
Happy coding!