On May 26, 2006, at 9:46 AM, James Adam wrote:

> Hi Al,
>
> This is indeed the right place to post. First things first - what
> versions of Ruby, Rails and the Engines plugin are you using?

ruby 1.8.4, Rails 1.1.2, Engines 1.1.2
>
> The next thing to do when debugging this kind of stuff is stick 'puts'
> lines at the top of files and start script/console or the webrick
> server, so you can see what's being loaded when. FYI, the file
> 'init_engine.rb' will get loaded when you call Engines.start
> :<engine_name>.

(IN init_engine.rb)
puts "init_engine.rb loaded"
puts "PSitsnotEngine::VERSION::Minor is # 
{PSitsnotEngine::VERSION::Minor}"
puts "PSitsnotEngine.config :max_output_size is # 
{PSitsnotEngine.config :max_output_size}"

alsmini:~/Development/RonRailsDev/psitsnot-engine al$ script/console
Loading development environment.
init_engine.rb loaded
PSitsnotEngine::VERSION::Minor is 1
PSitsnotEngine.config :max_output_size is 640

So it looks good at this point. But then I type:

 >> PSitsnotEngine::VERSION::Minor
NameError: uninitialized constant VERSION
         from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/ 
lib/active_support/dependencies.rb:123:in `const_missing'
         from (irb):1
 >> PSitsnotEngine.config :max_output_size
=> nil

As you can see, it all disappeared. If I put the same initialization  
into environment.rb, it stays put.

Thanks in advance for any clues you can give me.

                                        --Al Evans--

_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to