views:

747

answers:

1

I'm following the tutorial here http://applicake.com/posts/54-integrating-facebook-connect-with-rails-applications

to set up facebook connect. It almost worked, except for the last step :-( I'm getting a JSON error, inspite of installing the JSON plugin.

I did gem install json

How do I fix the problem?

Error in the view: uninitialized constant SessionsController::JSON

Error on the console: NameError (uninitialized constant SessionsController::JSON):

+1  A: 

Just to be sure you've got a require for the JSON plugin, correct?

require 'json/add/rails'
tvanfosson
oops, my bad. I had just require 'json'aaaah, wasted half an hour.thank you so much.