Rails Console in test environment

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

Rails Console in test environment

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How do I open the Rails Console in test environment from Netbeans?

Outside Netbeans, on the command prompt, I type:

ruby script/console test

Seems like this is not possible with NetBeans 6.1?

Re: Rails Console in test environment

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bharat,

bruparel wrote:
> How do I open the Rails Console in test environment from Netbeans?
>
> Outside Netbeans, on the command prompt, I type:
>
> ruby script/console test
>
> Seems like this is not possible with NetBeans 6.1?
>  

ENV['RAILS_ENV'] = 'test' in the script/console file should help, though
obviously it is a bit cumbersome. In 6.5 the console is invoked using
the environment specified in the project properties.

Erno


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