class Olelo::Attributes::Attribute::String
Public Instance Methods
field_tag(attr)
click to toggle source
# File lib/olelo/attributes.rb, line 36 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 40 def parse(params) value = params[key] value if !value.blank? end