# When starting rails 2.0.2 i get the following error

**URL:** <https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736>\
**Category:** Engines\
**Created:** [April 24, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736 "2008-04-24T15:31:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Pratt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Post date:** [April 24, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736/1 "2008-04-24T15:31:26Z")

</div>

I believe that my issue is releated to ticket  
[http://dev.rails-engines.org/ticket/285](http://dev.rails-engines.org/ticket/285)

Has there been any headway on this particular issue?

Error message.  
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
core\_ext/module/aliasing.rb:31:in `alias_method': undefined method `initialize\_schema\_migrations\_table’ for module  
`ActiveRecord::ConnectionAdapters::SchemaStatements' (NameError) from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/module/aliasing.rb:31:in `alias\_method\_chain’  
from /Users/kevin/Projects/time\_tracking/vendor/plugins/  
engines/lib/engines/rails\_extensions/migrations.rb:131:in `included' from /Users/kevin/Projects/time_tracking/vendor/plugins/ engines/lib/engines/rails_extensions/migrations.rb:131:in `class\_eval’  
from /Users/kevin/Projects/time\_tracking/vendor/plugins/  
engines/lib/engines/rails\_extensions/migrations.rb:131:in `included' from /Users/kevin/Projects/time_tracking/vendor/plugins/ engines/lib/engines/rails_extensions/migrations.rb:155:in `include’  
from /Users/kevin/Projects/time\_tracking/vendor/plugins/  
engines/lib/engines/rails\_extensions/migrations.rb:155  
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/  
usr/lib/ruby/1.8/rubygems/custom\_require.rb:27:in `gem_original_require' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/ usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require’  
… 47 levels…  
from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/  
server.rb:39  
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/  
usr/lib/ruby/1.8/rubygems/custom\_require.rb:27:in `gem_original_require' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/ usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require’  
from ./script/server:3

---

<div class="post-metadata">

**Author:** ![Kevin\_Pratt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Post date:** [April 24, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736/2 "2008-04-24T15:39:15Z")

</div>

This bug was fixed in the trunk version of the engines plugin a few days  
back:

[http://dev.rails-engines.org/changeset/681](http://dev.rails-engines.org/changeset/681)

If you’re tracking edge rails, you’ll also need to stay use the trunk  
version of the plugin, available from SVN or github:

[http://svn.rails-engines.org/engines/trunk](http://svn.rails-engines.org/engines/trunk)  
git://github.com/lazyatom/engines.git

HTH,

James

On Thu, Apr 24, 2008 at 2:28 PM, Kevin Pratt

---

<div class="post-metadata">

**Author:** ![Kevin\_Pratt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Post date:** [April 24, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736/3 "2008-04-24T18:15:14Z")

</div>

Hi Kevin,

On Apr 24, 2008, at 8:28 AM, Kevin Pratt wrote:

> I believe that my issue is releated to ticket [http://dev.rails-engines.org/ticket/285](http://dev.rails-engines.org/ticket/285)
> 
> Has there been any headway on this particular issue?

Which version of engines are you using? If you’re using Rails 2.0.x,  
you need to be using engines from the rb\_2.0 branch. You can’t use  
the trunk version after r681.

Rhett

---

<div class="post-metadata">

**Author:** ![Kevin\_Pratt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Post date:** [April 24, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736/4 "2008-04-24T20:34:54Z")

</div>

Thanks for your help guys.

Got that running both on the edge rails as well as the 2.0.2 gem.

Now, the reason I was trying to get it installed was I wanted to use  
date\_box engine.

Is this the right list to be asking questions about that particular  
engine?

I keep getting the error

undefined method `config’ for DateboxEngine:Module

Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![Kevin\_Pratt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Post date:** [April 28, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736/5 "2008-04-28T15:13:41Z")

</div>

Thanks for the response.

This is exactly what I was wondering. “Does this plugin work with  
rails 2.0”. Since it does not seem to I’ll dig around and see if I  
can get it working.

Thanks for the help.

Kevin

---

<div class="post-metadata">

**Author:** ![Kevin\_Pratt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Post date:** [April 28, 2008, 11:22am UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736/6 "2008-04-28T11:22:12Z")

</div>

The ‘config’ method of setting defaults was removed as part of the 2.0  
upgrade - it sounds like this plugin has not been updated to reflect  
this.

To get around it, you might be able to extract the config  
functionality out of an older version of the engines plugin (have a  
look through some of the 1.1.x tags on [http://svn.rails-engines.org/](http://svn.rails-engines.org/)),  
but that’s still no guarantee that this plugin plays well with Rails  
2.0, alas.

HTH,

James

On Thu, Apr 24, 2008 at 7:33 PM, Kevin Pratt

---

<div class="post-metadata">

**Author:** ![Kevin\_Pratt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Post date:** [June 5, 2008, 5:07am UTC](https://www.ruby-forum.com/t/when-starting-rails-2-0-2-i-get-the-following-error/135736/7 "2008-06-05T05:07:18Z")

</div>

> Which version of engines are you using? If you’re using Rails 2.0.x,  
> you need to be using engines from the rb\_2.0 branch. You can’t use  
> the trunk version after r681.
> 
> Rhett

Thanks for the answer, you saved me from not making a deadline.  
Although, you also validated my procrastination; I don’t know whether to  
kiss you or punch you…

_smooches_
