Need advice for user problem with Generator UI picking up 1.2.6 even though 2.1.0 is installed

View: New views
3 Messages — Rating Filter:   Alert me  

Need advice for user problem with Generator UI picking up 1.2.6 even though 2.1.0 is installed

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

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
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?


Re: Need advice for user problem with Generator UI picking up 1.2.6 even though 2.1.0 is installed

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,


Chris Kutler wrote:

> Hello,
>
> 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?

I think not, but shouldn't be too hard to fix that. Could you please
file an issue for this?

Erno



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Need advice for user problem with Generator UI picking up 1.2.6 even though 2.1.0 is installed

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://www.netbeans.org/issues/show_bug.cgi?id=145695

Erno Mononen wrote:

> Hi Chris,
>
>
> Chris Kutler wrote:
>> Hello,
>>
>> 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?
>
> I think not, but shouldn't be too hard to fix that. Could you please
> file an issue for this?
>
> Erno
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price!