2012-11-08 1 views
0

#302 In-Place Editing screencast에 따라 best_in_place 보석을 구현할 때 네임 스페이스 컨트롤러에서 best_in_place가 404를 반환합니다.POST가

조회수는 admin/users입니다.

한 페이지에이 코드를 감안할 때

= best_in_place @user, :admin, type: :input 

결과는 확인을 렌더링하고 클릭하면 편집 가능한 필드의 상태가 변경하지만 시도는 값을 저장 할 때이 오류

POST http://localhost:3000/admin/users 404 (Not Found) 

를 볼 수 있습니다 어떤 생각이 어떻게 해결할 수 있습니까?

답변

1

해결.

나는 $('.custom-selector').best_in_place() 대신 내부 $('.best_in_place').best_in_place()

의 사용되었다