본문 바로가기

2008년 6월 이전의 기록/Development

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.

출처 : Rails 2.0: Preview Release

각설하고, in_place_editor를 레일즈 2에서도 이용하고 싶다면 아래와 같이 플러그인을 설치해야 한다.

ruby script/plugin install http://svn.rubyonrails.org/rails/plugins/in_place_editing