사용자가 서로 피드백을 남길 수있는 Customer_ratings 모델이 있습니다. 웹 응용 프로그램이 제대로 작동하고 피드백이 수집, 저장 및 표시됩니다. 레일 콘솔 : 자동로드 할 수 없습니다.
내가 가서 레일 콘솔을 통해 몇 가지 피드백을 삭제하고 싶었지만 내가Customer_rating.all
를 입력 할 때, 나는 다음과 같은 오류 얻을 : 나는 Customer_rating을 입력하면 [0], 내가 얻을 마찬가지로
LoadError: Unable to autoload constant Customer_rating, expected /Users/myapps/app/models/customer_rating.rb to define it
를 :
RuntimeError: Circular dependency detected while autoloading constant Customer_rating
내 콘솔을 통해 다른 테이블에 액세스하는 동안이 문제가 발생하지 않습니다.
무엇이 문제의 원인 일 수 있으며이 오류로 인해 Web_apps를 통해 Customer_ratings가 제대로 작동하지 않을 수 있습니까?
나는 문제의 부부는 여기에서 볼 수 좋아한다 예를 들어, 모듈
의 이름을 수정해야합니다. 채팅에 대해 토론 해 보겠습니다. http://chat.stackoverflow.com/rooms/48530/ror –
참고 : 모든 상수는 [CamelCase] (http://en.wikipedia.org/wiki/CamelCase)이어야합니다. 'CustomerRating'을 호출 –