Skip to content

Commit

Permalink
+ price example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Hanke committed Jun 11, 2008
1 parent 01bca96 commit adf91a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ end
#
class Presenters::Item < Presenters::Project
model_reader :description, :filter_through => :textilize
# Use price in the view as follows:
# = presenter.price - will display e.g. 16.57 CHF, since it is filtered first through localize_currency
model_reader :price, :filter_through => :localize_currency

# Converts a database price tag to the users chosen value, with the users preferred currency appended.
Expand Down

0 comments on commit adf91a6

Please sign in to comment.