You should install the plugin, the gem is slightly out of date.
On Mar 9, 2009, at 8:33 PM, Vincent Orlando wrote:
> Hello,
>
> Having a problem getting the facebooker gem to work. I am using
> Rails 2.2.2 and the facebooker gem 1.0.13. Ruby 1.8.7. I keep
> getting this NameError that the
> ''ensure_application_is_installed_by_facebook_user'' is not
available.
> Am I correct to in believing that if I have the gem installed I do
> not need to install the plugin?
>
> Thanks in advance.
>
> Vince
>
> --
> Vincent Orlando
>
> /Users/vince/work/test/app/controllers/application.rb:11: undefined
> local variable or method
> `ensure_application_is_installed_by_facebook_user'' for
> ApplicationController:Class (NameError)
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:382:in
> `load_without_new_constant_marking''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:382:in `load_file''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:521:in `new_constants_in''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:381:in `load_file''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:256:in `require_or_load''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:221:in `depend_on''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:133:in `require_dependency''
> from /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:18:in
`define_dispatcher_callbacks''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:182:in `call''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:182:in `evaluate_method''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:166:in `call''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:90:in `run''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:90:in `each''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:90:in `send''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:90:in `run''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/callbacks.rb:277:in `run_callbacks''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> initializer.rb:559:in `send''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> initializer.rb:559:in `prepare_dispatcher''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> initializer.rb:173:in `process''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> initializer.rb:112:in `send''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
> initializer.rb:112:in `run''
> from /Users/vince/work/test/config/environment.rb:13
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:31:in `gem_original_require''
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:31:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:153:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:521:in `new_constants_in''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:153:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/
> mongrel/rails.rb:147:in `rails''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
> mongrel_rails:113:in `cloaker_''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
> configurator.rb:149:in `call''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
> configurator.rb:149:in `listener''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
> mongrel_rails:99:in `cloaker_''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
> configurator.rb:50:in `call''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
> configurator.rb:50:in `initialize''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
> mongrel_rails:84:in `new''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
> mongrel_rails:84:in `run''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
> command.rb:212:in `run''
> from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
> mongrel_rails:281
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:142:in
> `load_without_new_constant_marking''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:142:in `load''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:521:in `new_constants_in''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:142:in `load''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
> servers/mongrel.rb:64
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:31:in `gem_original_require''
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:31:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:153:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:521:in `new_constants_in''
> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:153:in `require''
> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
> server.rb:49
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:31:in `gem_original_require''
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:31:in `require''
> from script/server:3
>
>
> --
> Vincent Orlando
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk