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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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?
I'd
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?

Shelby
This topic is locked and can not be replied to.