So I put in in-place editing for one of my models.
One of the attributes is PRICE. I used the to_currency method to format the value before it is displayed.
The problem I'm having is that with the in-place editor, I just can't figure out how to set a custom display value.
I'm trying to get the price to display as $20.00 until it is clicked, but the in place editor displays 20.0..
implementation is fairly standard:
controller code
in_place_edit_for :product, :price
view code
<%= in_place_editor_field :book_post, :course %>
I looked at the documentation, and there appears to be an option
:load_text_url: URL where initial value of editor (content) is retrieved.
but I can't figure out how to use it...