Sha256: 1a0eb6e6df43c406cd711b30ceb953d8e25d51b55023a2b00d1a27734da0e9e8

Contents?: true

Size: 597 Bytes

Versions: 6

Compression:

Stored size: 597 Bytes

Contents

= KingFormat
KingFormat consists of two different formatting helper regions:

== Model
Define fields being of type date, money or percent.  When the fields are shown in the
views, their format is detected and the output is looking nice.

== View & Helper
Output any model value through the function formatted_value() to ensure a consistent output.

There are select values for money-symbols and date formatting.


== Example
In a Model
  has_money_fields :amount
  has_date_fields :subscription_start
  has_percent_fields :tax

Copyright (c) 2009 Georg Leciejewski, released under the MIT license

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
king_views-1.0.5 king_format/README.rdoc
king_views-1.0.4 king_format/README.rdoc
king_views-1.0.3 king_format/README.rdoc
king_views-1.0.2 king_format/README.rdoc
king_views-1.0.1 king_format/README.rdoc
king_views-1.0.0 king_format/README.rdoc