Method: Formbuilder.build_field
- Defined in:
- lib/formbuilder.rb
.build_field(index, field) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/formbuilder.rb', line 9 def build_field(index, field) case field['cssClass'] when 'input_text' @html += build_text_input(field) when 'textarea' @html += build_textarea(field) when 'checkbox' @html += build_checkbox(field) when 'radio' @html += build_radio(field) when 'select' @html += build_select(field) end end |