Project

General

Profile

Defect #6081

Updated by Toshi MARUYAMA almost 8 years ago

Error: 
 undefined method `[]' for nil:NilClass 
 Exception class: 
 NoMethodError 

 OS Ubuntu 10.4 
 redmine 0.9.3-1 (came with the distro) 

 Yes, I've set the /etc/redmine/default/database.yml to add: 

 <pre><code class="yaml"> 
 to_migrate: 
   adapter: mysql 
   database: to_migrate 
   host: localhost 
   port:  
   username: redmine 
   password: <mypass> 
   encoding: utf8 
 </code></pre> 

 


 environment.rb to have the following RAILS_ENV: 
 ENV['RAILS_ENV'] ||= 'to_migrate' 

 

  and made a to_migrate.rb (a copy of the development.rb file) 

 When I do all those things for development or production, it works... Trying to do something other gives the error above. 

Back