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.

Bug 145695 - Generator UI for wrong version of Rails - not the project's version
Summary: Generator UI for wrong version of Rails - not the project's version
Status: RESOLVED INVALID
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-30 18:17 UTC by Chris Kutler
Modified: 2009-09-18 09:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kutler 2008-08-30 18:17:57 UTC
A user wrote to me that when they run the 6.1 Generator and pick Scaffold from the drop-down, they are not seeing the
Rails 2.1 prompts of Model Name/Attribute Pairs, but instead Model Name/Controller Name/Actions.

In the environment.rb, the statement is as follows:

    RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION

RAILS_GEM_VERSION is not set.

This happens when using their MRI Ruby installation (1.8.6-p114)

In the Gems manager, the rails version displayed in the Installed tab is 2.1.0, 1.2.6

When they create a new Ruby on Rails Application, step 4 in the Wizard dialog (Install Rails) displays:
"Rails appears to be installed." and the Installed version is set to *1.2.6.*

If they click on the Update Rails button, the following status appears:
Updating installed gems
HEAD 200 OK: http://gems.rubyforge.org/latest_specs.4.8
Nothing to update

They tried setting RAILS_GEM_VERSION to 2.1.0 but that did not help.

Is there a way to get the IDE to display the Rails 2.1 generator prompts without having to uninstall 1.2.6?
Comment 1 Erno Mononen 2008-09-11 16:23:04 UTC
Actually this should work already, and works for me at least. I misunderstood the problem when you first posted this to 
the dev@ruby mailing list. Do they possibly have the 1.2.6 version installed in vendor/? That would cause the generator 
to show the 1.2.6 dialog.
Comment 2 Tomas Danek 2009-09-18 09:29:28 UTC
Without requested information for long time - INVALID. We can't do anything in this case. Reporter, please add requested
information and reopen issue. Thanks in advance.