class Olelo::Attributes::Attribute::Integer
Public Instance Methods
field_tag(attr)
click to toggle source
# File lib/olelo/attributes.rb, line 58 def field_tag(attr) %{<input class="observe" type="text" id="#{key}" name="#{key}" value="#{escape_html attr}"/>} end
parse(params)
click to toggle source
# File lib/olelo/attributes.rb, line 62 def parse(params) value = params[key] value.to_i if !value.blank? end