When I just renamed init_engine.rb to init.rb Mongrel/Webrick wouldn't even
start:

** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/commands/servers/mongrel.rb:15:
warning: already initialized constant OPTIONS
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/commands/servers/mongrel.rb:18:
undefined method `options' for []:Array (NoMethodError)
       from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in
`gem_original_require'
       from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
       from 
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require'
       from 
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in
`new_constants_in'
       from 
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require'
       from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.1
/lib/commands/server.rb:39
       from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
       from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
       from 
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require'
       from 
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in
`new_constants_in'
       from 
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require'
       from script/server:3

I haven't had problems with just deleting it.

- Tony

On 1/23/07, James Adam <[EMAIL PROTECTED]> wrote:

On 1/23/07, Tony Arcieri <[EMAIL PROTECTED]> wrote:
> Found the problem with that action... I guess "." is a path separator
now.
> Awesome.  So Engines 1.2 are working fine for me, at least in
development.
>
> Anyway, am I good just deleting init_engine.rb ?

If you need any initialization, put it in an init.rb file. As for
upgrading to engines 1.2, this is typically as simple as renaming
init_engine.rb to init.rb, if it exists.

If you don't have an init_engine.rb, you don't need to worry. However,
It's worth noting that your plugin does need to have either a lib
directory or init.rb (or both) to be recognised as a plugin.

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




--
Tony Arcieri
ClickCaster, Inc.
[EMAIL PROTECTED]
(970) 232-4208
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to