displayed value - in-place-editor

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-05-22T05:42:43Z Indexed on 2010/05/22 5:50 UTC
Read the original article Hit count: 178

Filed under:
|
|
|

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..

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about ruby-on-rails