support integer fields

This commit is contained in:
John Bintz 2013-01-11 16:01:56 -05:00
parent 4f01867bbe
commit 3ecbfd904b
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module SemanticRailsViewHelpers
value = @context.render(:partial => "attributes/#{options[:as]}", :locals => { :object => @object, :field => field, :raw_value => raw_value, :value => value })
end
(value or '').html_safe
(value or '').to_s.html_safe
end
def field!(field, options = {}, &block)