Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong number of arguments (1 for 2) in Admin::Responses#index #412

Open
shaynekang opened this issue Nov 13, 2014 · 2 comments
Open

wrong number of arguments (1 for 2) in Admin::Responses#index #412

shaynekang opened this issue Nov 13, 2014 · 2 comments

Comments

@shaynekang
Copy link

특별한 건 안하고, 평범하게 TO공지를 만들었는데 요런 에러가 뜨네요. ㅠㅠ

23_wrong_number_of_arguments

@angdev
Copy link
Member

angdev commented Nov 13, 2014

feature/design-follow-develop 브랜치인가요? 저는 문제가 없는데..

@shaynekang
Copy link
Author

넵 그 브랜치 맞습니다.
혹시나 해서 DB를 recreate하고 다시 시도해봤는데, 똑같은 에러가 나네요. ㅠㅠ)>

원인을 알아봤는데, models/user.rbresponsed_not_to_notice라는 scope가 있는데, 최근 커밋 55133d9 에서 인자를 두 개 받는걸로 변경된 것 같습니다. 근데 views/admin/responses/index.html.erb를 보면 인자를 하나만 넣어주고 있죠. 이게 원인인 것 같네요.

다만 이전 커밋에선 인자를 두 개 넣도록 작성된 걸 보니까, 중간에 Merging하다가 에러가 난 것 같습니다. ㅋ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants