Closed yhoonkim closed 9 years ago
재현
예상원인 view/admin/notice/show.html.erb에서 partial들을 render할 때
view/admin/notice/show.html.erb
... <div> <h3>참가 <small>(총 <%= User.responsed_yes(@notice).count %>명)</small></h3> <%= render partial: "table", locals: { users: User.responsed_yes(@notice).order_by_responsed_at.decorate, type: "yes" } %> </div> ...
에서 User가 아닌 current_club.user로 해줘야 할 것 같습니다.
User
current_club.user
아 그러게요 저거 왜 안 고쳤을까 (..
저런 부분 다 안 고쳐졌을 것 같습니다. User.responsed 로 검색하면 될듯
@FeGs 내가 고치는중...
근데 responsed_yes(@notice) 라서 괜찮을 줄 알았는데 ...
yse는 사실 괜찮은데 no 같이 나머지애들 불러오는거, unreaders같은 것들이 문제임ㅠ 힝
확실히 그렇군.. 으
재현
예상원인
view/admin/notice/show.html.erb
에서 partial들을 render할 때에서
User
가 아닌current_club.user
로 해줘야 할 것 같습니다.