support integer fields
This commit is contained in:
parent
4f01867bbe
commit
3ecbfd904b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue