Sha256: 122bbb06c280b67969d5a614f396b530d659e47971382b8f18a8d8f6b088b285

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

# encoding: utf-8

# class ContactForm < Rango::Form
#   property :subject, String
#   property :message, Text
#   property :cc_self, Boolean
# end

# @future 0.0.3 It's just a prototype now
module Rango
  class Form
    def media
    end

    def valid?
    end

    def to_html
      output = Array.new
      output << %{<form action="#{@action}" method="post">}
      output << *@fields.map { |field| field.to_html }
      output << %{</form>}
      return output.join("\n")
    end
  end

  class ModelForm

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rango-0.2.3 lib/rango/forms/form.rb
rango-0.2.1 lib/rango/forms/form.rb
rango-0.2.1.pre lib/rango/forms/form.rb
rango-0.2 lib/rango/forms/form.rb
rango-0.2.pre lib/rango/forms/form.rb