Created
August 17, 2008 19:42
-
-
Save nuxlli/5818 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActionView | |
module Helpers | |
module FormHelper | |
def currency_field(object, method, options = {}) | |
field = InstanceTag.new(object, method, self) | |
options[:value] = field.value(field.object) | |
options[:size] ||= 19 | |
options[:maxlength] ||= 19 | |
options[:style] ||= 'text-align:right' | |
field.to_input_field_tag("text", options) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment