This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If you have multiple rails versions on your system, there is currently no way to specify which Rails version to use when you create the project. If one were to create a Rails app from the command line, one can specify the version, such as rails _1.2.6_ myapp It is not enough to set the RAILS_GEM_VERSION in the environment.rb after the project is created, as the files that are pulled in during project creation are often version specific. There needs to be a way to specify from the IDE which version to use when creating a project.
Fixed in trunk. http://hg.netbeans.org/main/rev/3a2ee09f7096
When I go to the final panel of the new project wizard, I only see one rails version in the drop down list although I have 2 rails versions (In the Gems Manager installed tab, I see "rails (2.1.0, 2.0.2):...."). This change affects the following help files url="newrailsappwiz-nameandloc.html" url="newrailsappwsourcewiz-nameandloc.html" url="newrailsappwiz-installrails.html"
I think my problem might be caused by having a GEM HOME different from GEM PATH. I think maybe the panel is only looking at the GEM HOME and not including the other repositories in the GEM PATH. Just a guess.
I was wrong about the GEM HOME/ GEM PATH guess.
Seems to work for me both with JRuby and MRI, could you please attach the log file (with NB Ruby logging enabled)?
Using build 3378 I do see multiple versions for my MRI installation -- where I have both rails versions in the main repository. With JRuby, where I have 2.1 in the built-in JRuby repository and 2.0.2 in another repository that is in my Gem Path, I am only seeing 2.0.2. I have attached screenshots. One shows the Platform manager settings, one shows that the Gems manager knows that I have both 2.1 and 2.0.2, and the third is the new project wizard where I only have an option for 2.0.2. Am also attaching the log file. I notice that it is Initializing "c:\ruby\lib\ruby\gems\1.8" repository. That is odd as I clearly set built-in JRuby as the platform in the first wizard step. Not sure why it initializes that repository and not the built-in repository (my Gem Home)
Created attachment 67304 [details] Log File
Created attachment 67305 [details] Ruby Platform Manager
Created attachment 67306 [details] Ruby Gems Manager
Created attachment 67307 [details] Ruby Platform Manager (mime type set correctly)
Created attachment 67308 [details] Ruby Gems Manager (mime type set correctly)
Created attachment 67311 [details] Ruby Gems Manager (third time hopefully correct)
Created attachment 67312 [details] Only 1 Rails option on new project wizard
Closing, issue 149939 was causing problems here when you had multiple gem repositiories.