# File lib/cgikit.rb, line 1254 def to_s parser = CKHTMLParser.new( parent, body ) value = parser.parse to_s = "<form method=\"#@attr_enctype\"" if @attr_href then to_s << " action=\"#@attr_href\"" else to_s << " action=\"#{application.baseurl}\"" end if @attr_target then to_s << " target=\"#@attr_target\"" end if @attr_enctype then to_s << " enctype=\"#@attr_enctype\"" end to_s << ">\n" to_s << "<input type=\"hidden\" name=\"target\" value=\"#{parent.class}\">\n" if @attr_action then to_s << "<input type=\"hidden\" name=\"action\" value=\"#@attr_action\">" end to_s << "#{value}\n</form>\n" end