Class: Rango::Form
- Object
- Rango::Form
Public Visibility
Public Instance Method Details
to_html
public
to_html
[View source]
17 18 19 20 21 22 23 |
# File 'lib/rango/forms/form.rb', line 17 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 |
valid?
public
valid?
[View source]
14 15 |
# File 'lib/rango/forms/form.rb', line 14 def valid? end |