I can't answer most of your questions - but I think I can explain your
example: 

> Lastly, in a shell with no RAILS_ENV set, I do:
> 
>   % echo $RAILS_ENV
>   RAILS_ENV: Undefined variable.
> 
>   % script/console production
>   >> RAILS_ENV
>   => "production"
>   >> ENV['RAILS_ENV']
>   => "development"
> 
> Huh?  Where is that "development" coming from?

The ENV hash has the environment coming in from the web server (try
dropping logger.debug(ENV.inspect) in one of your controller actions
to see what is set in your setup). In the console, there isn't a real
server, so ENV['RAILS_ENV'] seems to be showing the default
environment, development. 

-- 
Cynthia Kiser
[email protected]

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to