veerasundaravel / Facebook-Registration

acebook_registration is a ruby library for displaying new Facebook Registration form and to parse to signed_request[http://developers.facebook.com/docs/plugins/registration].
http://veerasundaravel.wordpress.com/2011/01/27/facebook-registration-plugin-in-rails/
MIT License
6 stars 4 forks source link

uninitialized constant RAILS_ROOT #1

Open alikapadia opened 13 years ago

alikapadia commented 13 years ago

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:inrequire' 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:ineach' 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:ineach' 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:inrequire'

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?

veerasundaravel commented 13 years ago

Thanks for sharing the issue and detailed error log. I'l check the issue and post the updates in this thread.

alvaro-perez-mompean commented 12 years ago

Use Rails.root instead of RAILS_ROOT constant.

reiz commented 11 years ago

@apmomp Thanks that worked!

SohailWAL commented 9 years ago

@apmomp thanks man, it worked