I have an in-place editor for my customer.notes attribute. Here’s the
view:
<% @customer.notes = 'No notes' if [email protected] ||
@customer.notes.strip == ‘’ -%>
<%= in_place_editor_field :customer, :notes, {}, { :rows => 2 } %>
I have an in-place editor for my customer.notes attribute. Here’s the
view:
<% @customer.notes = 'No notes' if [email protected] ||
@customer.notes.strip == ‘’ -%>
<%= in_place_editor_field :customer, :notes, {}, { :rows => 2 } %>
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs