class Olelo::Attributes::Attribute::List
Public Instance Methods
field_tag(attr)
click to toggle source
# File lib/olelo/attributes.rb, line 47 def field_tag(attr) %{<input class="observe" type="text" id="#{key}" name="#{key}" value="#{escape_html attr.to_a.join(', ')}"/>} end
parse(params)
click to toggle source
# File lib/olelo/attributes.rb, line 51 def parse(params) value = params[key] value.split(/\s*,\s*/) if !value.blank? end