Welcome Guest | Login

Can't get the RFacebook gem to work

It's already installed on the server but when I'm trying to use it I keep getting errors with undefined methods. So I tried installing it myself to /.gems using the install your own gems tutorial but I was still getting the same errors. It seems to work fine on my local machine.
I shouldn't need to put in a "require_gem" should I?

I'm totally new to RoR so I'm sorry if I've missed or misunderstood something basic.

Completely different sidenote. When I SHH in, the killall dispatch.fcgi command doesn't work and always says no processes has been terminated. Is this because my account has no dedicated memory?

Any help appreciated. I've been beating my head against this all weekend so I'm getting a bit frustrated. Not giving up yet though.

2007-11-04 03:54 PM

RoR newbie in action. Bear with me.
Hi Jacob, welcome. :) You shouldn't need any require_gem (or 'gem' for later Rails versions) - and you won't be able to kill others' dispatch.fcgi processes but you will indeed kill your own.  If you see "No processes killed" then your dispatch.fcgi was never fired up.

Also - can you paste in the errors you are seeing exactly in your production log?  We can help from there.  

Cheers,
~William

2007-11-04 04:11 PM

Hi and thanks for the quick response. I actually just figured out what was wrong. I hadn't run rake facebook:setup on the server, only on my local machine, and its working fine now. Sorry to post and waste peoples time but I really didn't expect to solve it myself after spending so much time on it.

Awesome response time btw.

2007-11-04 04:15 PM

RoR newbie in action. Bear with me.
I got the same error.

There was a problem loading the RFacebook on Rails plugin.  You may have forgotten to install the RFacebook Gem.
/usr/local/lib/ruby/gems/1.8/gems/rfacebook-0.9.7/lib/rfacebook_on_rails/plugin/init.rb:96: config/facebook.yml could not be loaded. (StandardError)
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
       from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
       from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
       from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
       from /home/beca/apps/2be/current/config/../vendor/plugins/rfacebook_on_rails/init.rb:4:in `load_plugin'
       from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:401:in `load_plugin'
       from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        ... 19 levels...
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
       from /usr/local/bin/mongrel_rails:16:in `load'
       from /usr/local/bin/mongrel_rails:16
                                               


The file is in the config folder of my apps, so I dont understand why I got this error.

2007-11-06 11:23 AM

Do you have the gem frozen in your RAILS_ROOT/vendor folder?  Do you have chmod 644 on config/facebook.yml ?  Did you run rake facebook:setup on the server?  

2007-11-06 04:32 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.