#1 √ resolved
Oliver Miller

Undefined method `alias_method_chain' for Rails::Initializer:Class

Reported by Oliver Miller | July 12th, 2008 @ 01:21 PM

Hi Aaron,

First of all, thank you for creating this plugin. I installed it in order to use 'has_messages' and it all works fine when doing 'script/server'. However, all other scripts (generate, console, about, etc.) generate the following error (or a similar one):

Loading development environment (Rails 2.1.0)

./vendor/plugins/plugins_plus/lib/plugins_plus/app_integration/extensions/initializer.rb:8:in `included':NoMethodError: undefined method `alias_method_chain' for Rails::Initializer:Class

/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:93:NoMethodError: undefined method `cattr_accessor' for ActionController::Dispatcher:Class

/Users/oliver/Sites/foo/app/controllers/application.rb:4:NameError: uninitialized constant ActionController::Base

Am I being a complete idiot? I have added the following lines to the top of environment.rb as instructed:

require 'config/boot'

require 'vendor/plugins/plugins_plus/boot'

Do you have any idea what is going on? I am a bit of a newbie, but I find it puzzling that the server script is fine, but the others are strangely affected.

All the best, Oliver.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Adds various abilities to plugins, including asset management, migrations, and application code integration

People watching this ticket

You can update this ticket by sending an email to from your email client. (help)