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 107733 - launch rails console in different enviroments
Summary: launch rails console in different enviroments
Status: RESOLVED FIXED
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: 2007-06-21 22:48 UTC by dinsley
Modified: 2008-04-25 13:04 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dinsley 2007-06-21 22:48:27 UTC
The rails console ('ruby script/console') can be loaded with a different environment parameter passed with it so that
you can work with data in that particular environment ie:

'ruby script/console production'

Which would load the appropriate production environment configuration files etc.

Maybe just have it so that on the Rails console option in the menu, have it branch out with the different environments
based on the files inside of the 'app/config/environments' directory?
Comment 1 Jiri Kovalsky 2007-07-03 14:06:07 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 2 Erno Mononen 2008-04-21 15:15:36 UTC
I changed the rails console action to use the environment specified in the project properties. I didn't add the envs as 
a submenu as it would make the action inconsistent with the rest of the actions that take an env as a parameter, such 
as the run action. I actually think that it could be a good idea, but that needs to be considered still and then 
implemented in a consistent manner for all actions to keep the UI uniform. 

Hopefully this helps a bit at least. Thanks for reporting!
Comment 3 Erno Mononen 2008-04-21 15:17:42 UTC
The related changeset is http://hg.netbeans.org/main/rev/410c1d63785a.