2016-09-10 2 views
2

acts_as_follower Rails4에서 gem이 잘 작동하지만 Rails5가 작동하지 않습니다. 당신이 경우acts_as_follower gem이 rails5에서 작동하지 않습니다

no table found error will be display

: 당신이 sqlite3를 데이터베이스를 사용하는 경우

user = User.find(1)

user2 = User.find(2)

user.follow(user2)

, 나는 다음있어 오류 : https://github.com/tcocca/acts_as_follower

내가 통합 콘솔에서 추적 기능을 사용하려고 나는 다음과 같은 오류가 발생했습니다 PG 데이터베이스를 사용 중입니다. 다음 오류가 있습니다.

TypeError: no implicit conversion of nil into String

gem "acts_as_follower", github: "tcocca/acts_as_follower" 

gem "acts_as_follower" 

에서 내 보석을 변경하여 rails5 https://github.com/jigarbhatt2711/act_as_follow_demo

답변

2

와 보석 act_as_follow 포함 데모의 소스 코드를 문제 해결!

관련 문제