Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant RAILS_ROOT #1

Open
alikapadia opened this issue Oct 21, 2011 · 4 comments
Open

uninitialized constant RAILS_ROOT #1

alikapadia opened this issue Oct 21, 2011 · 4 comments

Comments

@alikapadia
Copy link

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
Copy link
Owner

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

@alvaro-perez-mompean
Copy link

Use Rails.root instead of RAILS_ROOT constant.

@reiz
Copy link

reiz commented Aug 2, 2013

@apmomp Thanks that worked!

@SohailWAL
Copy link

@apmomp thanks man, it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants