Forum: Ruby on Rails textfield helper - formatting the displayed text

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.
Shelby W. (Guest)
on 2005-12-30 01:14
(Received via mailing list)
Is there a way to have a textfield helper format the displayed field?
like to invoke the number_to_currency method on the number that get's
displayed, but I can't figure out how to do it.  I tried:

<%= text_field 'product', number_to_currency('price') %> and that didn't
seem to work...

Will I just have to use regular html if I want to achieve this?

This topic is locked and can not be replied to.