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 FacebookShare (NameError) #4

Open
Felixaverlant opened this issue Jun 29, 2011 · 1 comment
Open

uninitialized constant FacebookShare (NameError) #4

Felixaverlant opened this issue Jun 29, 2011 · 1 comment

Comments

@Felixaverlant
Copy link

Hi,

First, thanks for this gem !
But I have an issue when I try to make it running.
I did everything but when I launch my server, I check my environnement.rb, but can't figure out what's wrong. i've got this :

Line 28 of environnement : Portal::Application.initialize!

config/initializers/facebook_share.rb:1: uninitialized constant FacebookShare (NameError)

.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/engine.rb:201
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/engine.rb:200:in `each'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/engine.rb:200
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `run_initializers'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/application.rb:77:in `send'
.rvm/gems/ruby-1.8.7-p330/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
                        config/environment.rb:28
.rvm/gems/ruby-1.8.7-p330/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `polyglot_original_require'
.rvm/gems/ruby-1.8.7-p330/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
                                        /config.ru:3
.rvm/gems/ruby-1.8.7-p330/gems/rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
.rvm/gems/ruby-1.8.7-p330/gems/rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
                                                                                             config.ru:1:in `new'
                                                                                              config.ru:1

thanks !

@raywu
Copy link

raywu commented Oct 8, 2011

My guess is that you didn't reload your server after you add FacebookShare to your application helper, and rails booted you off your server port.

Nothing to worry about here. Just need to kill -9 , but I'm sure you figured that out.

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

2 participants