skip to main
|
skip to sidebar
Rails Hacks and Other Stuff
Tuesday, September 25, 2007
helper: number_to_php
Here's a helper to convert a number to Philippine Pesos. For other currencies, just replace the symbol.
def number_to_php(amt)
return number_to_currency(amt, :unit => "PHP ")
end
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2010
(1)
►
April
(1)
►
2009
(14)
►
April
(2)
►
March
(4)
►
February
(7)
►
January
(1)
►
2008
(20)
►
October
(1)
►
September
(3)
►
August
(1)
►
July
(1)
►
June
(1)
►
May
(2)
►
March
(4)
►
February
(4)
►
January
(3)
▼
2007
(33)
►
December
(2)
►
November
(4)
►
October
(6)
▼
September
(21)
helper: s_to_hh_mm_ss
helper: check_box_collection
helper: collection_for_select
tip: When editing JS, check all that depend on it
tip: tailing logs
tip: Not using Reserved Words!
helper: Getting the full URL
tip: Going Live with Attachment_fu
Tutorial: Foreign Keys with Different Names
Tutorial: Migration Table w/o IDs
Tutorial: attachment_fu: fixing the Windows error ...
Tutorial: Fixing file_column's permissions
helper: number_to_php
Tutorial: Email Authentication When Signing Up
method: generate_password
plugin: relative dates
Helper: user_authorized?
Documentation
Helper: get_url(url)
Helper: ms_to_hh_mm_ss(number)
World of Notes
Contributors
Ramon
arielicas
migsam
No comments:
Post a Comment