InPlaceEditor 썸네일형 리스트형 레일즈 2.0에서 InPlaceEditor 사용시 InvalidAuthenticityToken 예외 발생시 우여곡절 끝에 InPlaceEditor를 플러그인으로 설치하고 script/generate scaffold로 생성한 내용 중 show.html.erb 뷰를 다음과 같이 수정, : 1 %> InPlaceEditor가 제대로 작동하는 것을 확인하고 컨트롤러에 다음의 코드를 추가하여 InPlaceEditor로부터의 요청을 처리할 수 있도록 하였다. in_place_edit_for :contact, :name in_place_edit_for :contact, :email ... 테스트 결과 아래와 같이 예외가 발생한다. ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): ... 또다시 이리저리 문제 해결을.. 더보기 InPlaceEditor 플러그인 InPlaceEditor는 사용자들이 어플리케이션에서 자주, 신속히 편집해야 하는 데이터가 있을 때 사용하는 에디터이다. InPlaceEditor는 별도의 편집 폼을 열지 않고 데이터를 즉석에서 편집할 수 있도록 해 준다. 이것 역시 기존에 Core에 포함되어 있었으나, 레일즈 2.0으로 넘어오면서 플러그인으로 옮겨졌다. 루비온레일즈 홈페이지에는 아래와 같은 표현으로 in_place_editor와 auto_complete_for 두 기능의 운명을 아래와 같이 표현하고 있다.(kick out에 밑줄 쫙~) Finally, we’ve kicked out in_place_editor and autocomplete_for into plugins that live on the official Rails SVN. .. 더보기 이전 1 다음