2012-04-11 7 views
0

나는 조금씩 보석이 설치되어 있으며 ApplicationController에 버전 3 용 API를 사용하도록 설정하고 있지만 위의 오류가 발생합니다. 여기 내 application_controller.rb초기화되지 않은 상수 ApplicationController :: Bitly

class ApplicationController < ActionController::Base 
    protect_from_forgery 
    Bitly.use_api_version_3 
    before_filter { @cart = find_or_create_cart_from_session } 
    before_filter { @bitly = Bitly.new('myusername', 'XXXXXX_API_KEY_XXXXX') } 

답변

0

당신은 당신이 보석이 설치되어 말하지만, 당신이 당신의 Gemfile에 포함해야합니까의 시작인가? Gem 파일에 Gem이 없다면 응용 프로그램에서 Gemfile을 찾지 못해 초기화되지 않은 상수 오류가 발생합니다.

+0

예 Gemfile에 있는데'bundle install '을 실행했습니다. – Chris

관련 문제