Uninitialized persistent error while JSON and Facebook connect to rails

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

set up facebook connection. It almost worked except for the last step :-( I am getting a JSON error despite installing the JSON plugin.

I did gem install json

How do I fix the problem?

Error in view: uninitialized constant SessionsController :: JSON

Console error: NameError (uninitialized SessionController :: JSON constant):

0


a source to share


1 answer


Just to make sure you have a requirement for a JSON plugin, right?



require 'json/add/rails'

      

+6


a source







All Articles