Forum: Ruby on Rails in_place_editor_field with blank value

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Dav Coleman (Guest)
on 2006-02-08 01:43
(Received via mailing list)
I have an in-place editor for my customer.notes attribute. Here's the

      <% @customer.notes = 'No notes' if !@customer.notes ||
@customer.notes.strip == '' -%>
      <%= in_place_editor_field :customer, :notes, {}, { :rows => 2 } %>
This topic is locked and can not be replied to.