Bugs: Browse | Submit New | Admin

[#22177] NoMethodError: undefined method `alias_method_chain'

Date:
2008-09-26 17:03
Priority:
3
Submitted By:
Chris Armstrong (charms)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
NoMethodError: undefined method `alias_method_chain'

Detailed description
Hi 

After installing the plugin and executing rake facebook:setup I constantly receive the error message that alias_method_chain
does not exist.

RAILS_GEM_VERSION = '1.1.6'
rfacebook-0.9.8
Debian Etch 4

Thanks
Chris


s3:/data/www/garageband.ugly-sheep.org# ls
README  Rakefile  app  components  config  db  doc  lib  log  public  script  test  tmp  vendor

s3:/data/www/garageband.ugly-sheep.org# ruby script/plugin install
svn://rubyforge.org/var/svn/rfacebook/trunk/rfacebook/plugins/rfacebook
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test/test_helper.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test/model_test.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test/controller_test.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test/session_test.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test/initialization_test.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test/api_test.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/test/view_test.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/Rakefile
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/rake
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/init.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/tasks
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/tasks/all.rake
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/lib
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/lib/status_manager.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/lib/model_extensions.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/lib/controller_extensions.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/lib/session_extensions.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/lib/view_extensions.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/install.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/uninstall.rb
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/templates
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/templates/exception_backtrace.rhtml
A    /data/www/garageband.ugly-sheep.org/vendor/plugins/rfacebook/templates/debug_panel.rhtml
Exported revision 82.

s3:/data/www/garageband.ugly-sheep.org# ls
README  Rakefile  app  components  config  db  doc  lib  log  public  script  test  tmp  vendor

s3:/data/www/garageband.ugly-sheep.org# ruby script/console
Loading development environment.
script/../config/../config/../vendor/plugins/rfacebook/init.rb:41:in `load_plugin':StandardError: config/facebook.yml
could not be loaded.
>> exit

s3:/data/www/garageband.ugly-sheep.org# rake facebook:setup
(in /data/www/garageband.ugly-sheep.org)
======================================================
Setting up RFacebook on Rails Plugin
  [1] Created config/facebook.yml <-- BE SURE TO CHANGE THE API KEY AND SECRET
Done.
======================================================

s3:/data/www/garageband.ugly-sheep.org# ruby script/console
Loading development environment.
./script/../config/../config/../vendor/plugins/rfacebook/lib/controller_extensions.rb:537:in `included':NoMethodError:
undefined method `alias_method_chain' for ActionController::Base:Class
>>

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-10-07 22:36
Sender: Will Lorentson

I know this is old, but I just ran into the issue as well on
an old app and figured I'd post the answer for the next guy who
finds this.

alias_method_chain requires a newer version of rails, at least
1.2, and you're running 1.1.6 above.

Try running gem update rails in order to upgrade.

Or, if you've already got a newer version of rails installed,
make sure that your app isn't forcing the use of an older version
(check the version in your config/environment.rb).

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item