Open alikapadia opened 13 years ago
Thanks for sharing the issue and detailed error log. I'l check the issue and post the updates in this thread.
Use Rails.root instead of RAILS_ROOT constant.
@apmomp Thanks that worked!
@apmomp thanks man, it worked
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:inrequire' 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:inrequire' 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:inrequire' 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?