## # Form Helper 是生成 Bootstrap 风格表单控件的视图辅助模块。 module Repres::Bootstrap::FormHelper def bootstrap_form_field(options = {}) render partial: 'repres/bootstrap/form_field', locals: { options: options } end def bootstrap_form_select_box(options = {}) render partial: 'repres/bootstrap/form_select_box', locals: { options: options } end def bootstrap_form_check_box(options = {}) render partial: 'repres/bootstrap/form_check_box', locals: { options: options } end def bootstrap_form_radio_box(options = {}) render partial: 'repres/bootstrap/form_radio_box', locals: { options: options } end end