Sha256: b65e321ffb85423c5f7aa9a2e9137a695738f5388e0a5ce0082f16b720af3c1b

Contents?: true

Size: 521 Bytes

Versions: 19

Compression:

Stored size: 521 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
    attribute :media

    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

19 entries across 19 versions & 1 rubygems

Version Path
rango-0.1.1.3 lib/rango/forms/form.rb
rango-0.1.1.2.11 lib/rango/forms/form.rb
rango-0.1.1.2.10 lib/rango/forms/form.rb
rango-0.1.1.2.9 lib/rango/forms/form.rb
rango-0.1.1.2.8 lib/rango/forms/form.rb
rango-0.1.1.2.7 lib/rango/forms/form.rb
rango-0.1.1.2.6 lib/rango/forms/form.rb
rango-0.1.1.2.5 lib/rango/forms/form.rb
rango-0.1.1.2.4 lib/rango/forms/form.rb
rango-0.1.1.2.3 lib/rango/forms/form.rb
rango-0.1.1.2.2 lib/rango/forms/form.rb
rango-0.1.1.2.1 lib/rango/forms/form.rb
rango-0.1.1.2 lib/rango/forms/form.rb
rango-0.1.1.1 lib/rango/forms/form.rb
rango-0.1.1 lib/rango/forms/form.rb
rango-0.1.0 lib/rango/forms/form.rb
rango-0.0.6 lib/rango/forms/form.rb
rango-0.1.pre lib/rango/forms/form.rb
rango-0.0.4 lib/rango/forms/form.rb