Sha256: 708eb705015696a1865e10caf16e5d7908f5adfd82300c3be8afe3ebeeabeccc
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
module ExCite module ApplicationHelper def build_external_form f = "" @elements.each do |element| # Return input element for no js and not textarea f += "<input name=\"#{element[:name]}\" type=\"#{(element[:type].nil?) ? "text" : element[:type]}\" value='#{element[:value]}' />" unless (element[:type] and element[:type].eql?("textarea")) # Return textarea element for no js and type=textarea f += "<textarea name=\"#{element[:name]}\" id=\"#{element[:name]}\">#{element[:value]}</textarea>" unless (element[:type].nil? or not element[:type].eql?("textarea")) end return f end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ex_cite-1.0.1 | app/helpers/ex_cite/application_helper.rb |
ex_cite-1.0.0 | app/helpers/ex_cite/application_helper.rb |