# Engines plugin 1.2 release coming real soon now

**URL:** <https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058>\
**Category:** Engines\
**Created:** [January 23, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058 "2007-01-23T12:17:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 23, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/1 "2007-01-23T12:17:55Z")

</div>

Hello all,

This is just a quick heads up that I’m going to be making the 1.2  
branch of the engines plugin the official release in the very near  
future. If you’re planning on using the engines plugin with Rails 1.2,  
I’d _really_ appreciate it if you could test the current branch with  
your 1.2 application:

rm -fr vendor/plugins/engines  
svn co [http://svn.rails-engines.org/engines/branches/rb\_1.2](http://svn.rails-engines.org/engines/branches/rb_1.2)  
vendor/plugins/engines

Check out the UPGRADING notes for what to be wary for, and post any  
bugs back to the Collaboa site, [http://dev.rails-engines.org](http://dev.rails-engines.org) (login:  
anon, password: engines).

[http://svn.rails-engines.org/engines/branches/rb\_1.2/UPGRADING](http://svn.rails-engines.org/engines/branches/rb_1.2/UPGRADING)

## IMPORTANT NOTE for those not using Rails 1.2

If you’re stuck on Rails 1.1.6 or lower (and I’m sure there are many  
who are), don’t try to install this release. It won’t work. It should  
actually complain gracefully, but there are no guarantees.

Furthermore, if you’re linking to the  
[http://svn.rails-engines.org/plugins/engines](http://svn.rails-engines.org/plugins/engines) tag via SVN externals,  
you MUST update your link to either freeze at the current revision, or  
switch to a specific tag. Alternatively, look at the Piston tool for  
locking down your version of the engines plugin to a known-working  
revision.

This is unbelievably important - ignore at your PERIL.

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 23, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/2 "2007-01-23T18:34:31Z")

</div>

I upgraded yesterday, and everything is working save for one action in  
one  
of my controllers no longer responds (I get a routing error)

The action’s name is “thumbnail” and it was working fine prior to the  
upgrade. No idea what the problem is.

Can I just delete init\_engine.rb? Do I really need anything in init.rb?

That said, I’m really digging the new content tag stuff (the :plugin =\>  
‘myengine’ options). Very slick.

- Tony

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 23, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/3 "2007-01-23T20:31:56Z")

</div>

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 ?

- Tony

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 24, 2007, 12:03am UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/4 "2007-01-24T00:03:49Z")

</div>

On 1/23/07, Tony A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 24, 2007, 12:14am UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/5 "2007-01-24T00:14:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 24, 2007, 12:17am UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/6 "2007-01-24T00:17:51Z")

</div>

On 1/23/07, Tony A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> When I just renamed init\_engine.rb to init.rb Mongrel/Webrick wouldn’t even  
> start:

What did you have in init\_engine.rb?

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 24, 2007, 9:37am UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/7 "2007-01-24T09:37:50Z")

</div>

On 1/23/07, Tony A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I pasted it here:
> 
> [http://pastie.caboo.se/35176](http://pastie.caboo.se/35176)
> 
> I moved the require ‘login\_system’ directive into clickcaster\_engine.rb and  
> it worked just fine…

Hmm - seems odd, though depending on where “login\_system” is, it may  
not be in the load path at the point init.rb is loaded.

Also, from your paste, you should be aware of the changes to  
Engine.current.version. Storing version information in an about.yml  
file is the way to go now (see the engines plugin itself for an  
example).

Thanks!

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [January 24, 2007, 12:39am UTC](https://www.ruby-forum.com/t/engines-plugin-1-2-release-coming-real-soon-now/83058/8 "2007-01-24T00:39:54Z")

</div>

I pasted it here:

[http://pastie.caboo.se/35176](http://pastie.caboo.se/35176)

I moved the require ‘login\_system’ directive into clickcaster\_engine.rb  
and  
it worked just fine…

- Tony
