2012-03-29 1 views
1

Rails 2.3.5에서 Rails 3.1.3으로 애플리케이션을 업그레이드했습니다. 나는 acts_as_commentable_with_threadingawesome_nested_set을 플러그인으로 사용했습니다. 지금은 이미 데이터베이스에 적용을 acts_as_commentable_with_threading 에 대한acts_as_commentable_with_threading 초기화되지 않은 상수 Post :: Comment Rails 3.1.3

class Post < ActiveRecord::Base 
    acts_as_commentable 
end 

마이그레이션 다음과 같이 모델의 코드를

gem 'awesome_nested_set' 
gem 'acts_as_commentable_with_threading' 

다음과 같이 레일 3.1.3에 대한 GemFile에 추가했습니다. 나는이 문제가 될 수 무엇

uninitialized constant Post::Comment 

으로 그 라인에 내가 오류가 해당 뷰를로드 할 때

나는

<%= pluralize(post.root_comments.size, "comment") %> on this post 

으로보기에 문이있다. 도와주세요.

미리 감사드립니다.

당신은 발전기 및 이후 마이그레이션 실행하는 것을 잊었다 수도
+0

가의

bin/rake db:migrate 

그것은 최초의 단계에 대한 해결책이 아니다 이? 방금이 오류가 발생하기 시작했습니다. – jab

+0

@jab 아무도. 나는 그 프로젝트에 대한 연구를 포기하면서 더 이상 확인하지 않았다. –

답변

0

:

rails generate acts_as_commentable_with_threading_migration 
or 
rails generate acts_as_commentable_upgrade_migration 

이후 : 여전히 github repo instructions