corner imagecorner image
IDEPlatformPluginsDocs & SupportCommunityPartners

Ruby and Rails - plugin detail

Ruby for Netbeans provides all the basics expected from a full-featured Ruby IDE. Ruby for Netbeans also provides support for the Ruby on Rails web framework.

n/a
Plugin owner: enebo
Website:
Added: 2011-04-16
Last updated: 2011-04-16
NetBeans Versions: 6.9, 7.0
License: CDDL or GPLv2
Category: Programming Languages
Size: 2.76 MB
Downloaded: 16,417 times
Rating:
 4.75, by 19 users


Download plugin

Verifications for NetBeans versions

7.0 verification PASSED See verification details

Introduction

Ruby for Netbeans provides all the basics needed in a full-featured Ruby IDE:
  • Editing
    • Ruby Source
    • RHTML Source
    • YAML
  • Debugging
  • Refactoring
It also provides support for Rails 2.3.x. With this support you can:
  • Create a Rails application
  • Invoke all the basic operations of Rails from IDE controls (migrations, generators, etc...)
  • Basic support for deploying to glassfish web-server


What's new in this version

This version has no new features per se, but it is the first version which is released under community support and not from the main Netbeans development team.

[ You have to be logged in to be able to comment. ]

User Comments

  

uninitialized constant Test::Unit::TestCase::SUBCLASSES

I am trying run unit test but it ends on this error:
/.netbeans/7.1/nb_test_mediator.rb:114:in `add_to_suites': uninitialized constant Test::Unit::TestCase::SUBCLASSES (NameError)

Google does not provide any solution :(
Posted by pepa.chmel on Feb 13, 2012
  

Rails 2.3 support on NB7.1?

I just tried to create project from existing source of 2.3.x and it still shows 3.x plugins in the gem list. But the command-line bundle exec and bundle install etc work fine with 2.3.

Doesn't the preview release of rails plugin on Netbeans 7.1 work with rails 2.3 apps anymore?
Posted by unicman on Feb 09, 2012
  

One of the sexiest plugins

I had to admit that Ruby and Rails for netbeans is one of the sexiest plugins for Rails. If not for the discontinuation of official Rails support for Netbeans from version 7, RubyMine and other paid IDEs for rails would have become extinct by now.
Posted by jbragadeesh on Feb 01, 2012
  

Profiler when starting mongrel

Why when I start mongrel on netbeans 7.1, the Profiler starts and the memory usage goes over the roof?
Posted by theyaa on Jan 23, 2012
  

Re: Nebeans memory

On my system I am seeing about 800Mb Real Memory being consumed and I have a lot open (things are snappy and quick for me). I will keep an eye out for any waste, but it might just be that netbeans allocates a large heap for better perf...if your machine does not have enough memory for that max heap then you start swapping and things slow way down. Possibly, reducing max heap could help if you are swapping a lot (memory getting saved to disk is much slower than more frequent GC'ing). I don't know how to reduce max heap off hand though...
Posted by enebo on Jan 18, 2012
  

Nebeans memory

Hi,
Netbeans 7.1+Ruby on Rails plugin uses 900MB RAM + Ruby takes around 230MB. That is a total of more than 1GB RAM and it renders netbeans very slow. Is there a way to reduce this usage and improve netbean's performance?

Thanks
Posted by theyaa on Jan 18, 2012
  

Re: Project right-click

Aha. I figured this out. I suspect this is because the Ruby platform you have associated with your Rails project does not exist. This is definitely a bug. Go to Tool menu and select Ruby Platforms and then click the Autodetect Platforms button. This should make it work again unless it does not autodetect the particular Ruby you were using with NB 7.0. There is an issue opened for this problem: http://netbeans.org/bugzilla/show_bug.cgi?id=198285
Posted by enebo on Jan 17, 2012
  

Project right-click

Thank you for the update, I have installed the plugin preview on netbeans 7.1 and imported my settings from 7.1 beta. Something I noticed, is that when I right-click on my project root, I do not get the context-menu.

Is that a bug or I missed something?
Posted by theyaa on Jan 17, 2012
  

Workaround to install preview build on NetBeans 7.1

I have a preview1 build which you can install on NetBeans 7.1. Please report any new issues which you run into in http://netbeans.org/bugzilla. Details can be found here:

http://blog.enebo.com/2012/01/workaround-for-ruby-support-on-netbeans.html
Posted by enebo on Jan 17, 2012
  

Release update

I was hoping to have things resolved last week but a issue popped up which will prevent getting uploaded to 7.1 catalog. By tomorrow (my time) I will provide a url for test 'test' nbms's for community-ruby for people to try out (these will for sure load in 7.1 and at least basic Ruby editing appears to be fine). Here is an issue to watch for progress on official release:

http://netbeans.org/bugzilla/show_bug.cgi?id=207025
Posted by enebo on Jan 16, 2012
  

Next Release

Anyone has a timeline on when the next release for this plugin, that will support netbeans 7.1, will be please?
Posted by theyaa on Jan 16, 2012
  

Vote for this plugin - Please

Everybody please take your time to vote for this plugin!

Why?

I think Netbeans is still the best ruby IDE. I have been testing rubymine every other month for a year now, but in terms of speed, stability and usability it is not an option.

If we get more votes on this, existing devs see that their work is appreciated and more developers might take a look on improving this plugin.
Posted by killerg on Jan 15, 2012
  

Creation of new project - fails

The old problem for Windows XP OS detected by me still in Netbeans 7.0 exists. When creating a new Ruby or Rails project, the wizard stays frozen at 25% of progression. The only way to quit - is to kill the application via Task Manager pane. After restarting Netbeans, the project that failed before can be opened without problems.
Posted by javix on Jan 13, 2012
  

Creation of new project - fails

The old problem for Windows XP OS detected by me still in Netbeans 7.0 exists. When creating a new Ruby or Rails project, the wizzard stays frozen at 25% of progression. The onky way to quit - is to kill the application via TAsk Manager pane. After restarting Netbeans, the project that failed before can be opened without problems.
Posted by javix on Jan 13, 2012
  

Ruby and Rails with Git

In my case I need to use Git + Ruby and Rails plugin. Git does not work properly with 7.0.1 and that is why I had to go with 7.1 Beta. It is working fine, but tooooo slow and that is in part becuase of the GC in netbeans. This is why I am impatiently waiting for the updated version of this plugin so I can use it with 7.1.

Thanks
Posted by theyaa on Jan 12, 2012
  

Installation question

How to install the plugin after downloading the zip file, please? In the previous 7.0.1 version the plugin was in the plugins list, it is no more the case in Netbeans 7.1 version. Any idea how to try it?
I unzipped the archive and tried to install all the included *.nbm files separately, one by one. The problem is with RHTML plugin:

The plugin HTML Editor Library is requested in version >= 1.21 (release version 1) but only 2.0.1 (of release version different from 1) was found.
There are still 5 plugins (of 25 available in the zip) uninstalled because of that. More of that, even those which were installed without any errors are not displayed in the installed plugins tab.
Posted by javix on Jan 12, 2012
  

RE: Recommended Netbeans Version

@theyaa i am using the 7.0.1 as a base version. And since i am having som php projects too i choose the php suite. But this does not really matter as you need to install the plugin anyway. So you can also take the java or c version.
Posted by killerg on Jan 12, 2012
  

Recommended Netbeans Version

When downloading Netbeans, several versions are presented. Before, there was a specific version for Ruby, but now we need to choose a different version to run the ruby and rails plugin with it. Which version of Netbeans is the recommended to download to work with Ruby on Rails plugin?

Thanks
Posted by theyaa on Jan 12, 2012
  

RE: Netbeans 7.1 Beta

@enebo this is a good news, i am very excited...
Posted by hron84 on Jan 12, 2012
  

RE: Netbeans 7.1 Beta

I am getting close to submitting a version which works well with Netbeans 7.1. I don't have any idea why it would be so slow in 7.1 beta unfortunately.
Posted by enebo on Jan 10, 2012
  

Netbeans 7.1 Beta

I have ruby and rails plugin running on Netbeans 7.1 Beta but, it is very slow and takes several seconds to respond to user strokes. Is there any anyways to improve the performance of netbeans with this plugin, since the plugin does not work with 7.1 later versions yet?

Thanks
Posted by theyaa on Jan 10, 2012
  

NB 7.1 support

I will give it my best to eliminate the HTML editor problems not allowing NB 7.1 to load Ruby support very soon. Sorry it has not happened already.
Posted by enebo on Jan 06, 2012
  

Netbeans 7.1 is not supported

Why isn't 7.1 supported yet? This is very frustrating.
Posted by japanick on Jan 06, 2012
  

Netbeans 7.1

Anyone has an update on using this plugin with netbeans 7.1 please? When I install 7.1 I can not install this plugin, it gives me several errors.
Posted by theyaa on Jan 05, 2012
  

Great keep us posted!

Great keep us posted!
Posted by patkoscsaba on Nov 28, 2011
  

@patkoscsaba

There is some work underway to update nbruby to use 7.{01} APIs instead of relying on deprecated 6.9 APIs. It will also update Ruby parser for better 1.9 support. Ran into some issues during the upgrade which needs to get worked out.
Posted by enebo on Nov 28, 2011
  

Any update for NetBeans 7.1?

Are there any plans or available development versions which are working with NetBeans 7.1 nightly?
Posted by patkoscsaba on Nov 28, 2011
  

uninitialized constant Rake::DSL error when creating a project

That's what i get when trying to create both ruby and rails projects. tried reinstalling both ruby interpreter and netbeans but it didn't help. (Windows 7, Netbeans 7.0.0, Ruby 1.9.2)
Posted by thyforhtian on Jul 13, 2011
  

Congrats!

I'm just happy to see this into community hands this fast! I just hoped they did the same with UML plugin... Hopefully the code is in better shape that UML is.

Keep up the good work!
Posted by javydreamercsw on May 11, 2011
  

Re: HTML 5

@charlesdeb

That is likely true. I am not yet familiar with how basic HTML support ties into Erb editing (it might just work with newer HTML module), but anything tangential to specific Ruby modules will just work. For NB 7, I mostly upgraded to keep up on top of the new Java features and basic IDE enhancements (I use both Ruby and Java daily).
Posted by enebo on May 07, 2011
  

HTML 5

Am I right in saying that the reason I would use this plug-in and NB 7 in lieu of the NB 6.9.1 with the old RoR module that used to be provided by the NB teams is so that I can take advantage of new features in NB that are relevant to RoR developers - e.g. HTML5 parsing?
Posted by charlesdeb on May 05, 2011
  

Re: Ruby And Rails Installation info request

@dant

This will work on NB release 6.9 or 7.0 (there is a version field above that specifies this).

It ships with an older version of JRuby (next version of this plugin will update to current version of JRuby), but you will need to install Ruby outside of Netbeans if you don't want to use that JRuby version and then you can add additional ruby runtimes that nb knows about in preferences (this is similiar to how nb handles versions of Java if you have ever changed that).
Posted by enebo on May 02, 2011
  

Ruby And Rails Installation info request


How can Ruby And Rails be installed and does
this plugin run on Netbeans release 7.0?
Posted by dant on May 02, 2011