Displaying 1 result from an estimated 1 matches for "facebook_cooki".
Did you mean:
facebook_cookies
2012 May 01
1
uninitialized constant LoginController in Ruby
...expand_path(''../application'', __FILE__)
# Initialize the rails application
Qstack::Application.initialize!
require ''koala''
This is my application_controller.rb
class ApplicationController < ActionController::Base
# protect_from_forgery
before_filter :parse_facebook_cookies
def parse_facebook_cookies
@facebook_cookies =
Koala::Facebook::OAuth.new.get_user_info_from_cookie(cookies)
end
end
This is my login_controller.rb
class LoginController < ApplicationController
def index
graph =
Koala::Facebook::GraphAPI.new(@facebook_cookies["access_token"])...