veerasundaravel/Facebook-Registration — Issue #1: uninitialized constant RAILS_ROOT
Author: alikapadia
Created: 2011-10-21 09:13:59+00:00
State: open

I am using Rails 3.1. Since my app gives me the error 'undefined local variable or method `init_fb_registration''
I placed gem 'facebook_registration' in my gemfile
I get the following error when i try to start the server

/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing': uninitialized constant RAILS_ROOT (NameError)
from /Library/Ruby/Gems/1.8/gems/facebook_registration-1.0.3/lib/facebook_registration.rb:26
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'

I am guessing it has to do with incompatibility of the rails version, can you please let me know if I will be able to use this gem?