in_place_editor_field: 空值时的处理方式之一
1 2 |
<span id="name_<%= @student.id %>">Name:</span> <%= in_place_editor_field :student, :name, {}, :external_control => "name_#{@student.id}" %> |
其它方案:
http://d.hatena.ne.jp/zariganitosh/20070613
http://script.aculo.us/docs/Ajax.InPlaceEditor.html
http://seb.box.re/2008/2/3/patch-for-inplaceeditor-adding-editonblank-feature
Posted by devon At May 21, 2008 11:11
请登录以发表评论。