Module: Repres::Bootstrap::ApplicationHelper
- Defined in:
- app/helpers/repres/bootstrap/application_helper.rb
Overview
Application Helper 是生成适用于 Bootstrap 的 HTML 标签的视图辅助模块。
Instance Method Summary collapse
- #bootstrap_form_field(options = {}) ⇒ Object
- #bootstrap_form_select_box(options = {}) ⇒ Object
- #bootstrap_script(options = {}) ⇒ Object
- #bootstrap_style(options = {}) ⇒ Object
Instance Method Details
#bootstrap_form_field(options = {}) ⇒ Object
6 7 8 9 10 |
# File 'app/helpers/repres/bootstrap/application_helper.rb', line 6 def bootstrap_form_field( = {}) warn 'Repres::Bootstrap::ApplicationHelper#bootstrap_form_field is deprecated and will be removed in the future, please use Repres::Bootstrap::FormHelper#bootstrap_form_field instead.' #super options render partial: 'repres/bootstrap/form_field', locals: { options: } end |
#bootstrap_form_select_box(options = {}) ⇒ Object
12 13 14 15 16 |
# File 'app/helpers/repres/bootstrap/application_helper.rb', line 12 def bootstrap_form_select_box( = {}) warn 'Repres::Bootstrap::ApplicationHelper#bootstrap_form_select_box is deprecated and will be removed in the future, please use Repres::Bootstrap::FormHelper#bootstrap_form_select_box instead.' #super options render partial: 'repres/bootstrap/form_select_box', locals: { options: } end |
#bootstrap_script(options = {}) ⇒ Object
18 19 20 |
# File 'app/helpers/repres/bootstrap/application_helper.rb', line 18 def bootstrap_script( = {}) render partial: 'repres/bootstrap/script', locals: { options: } end |
#bootstrap_style(options = {}) ⇒ Object
22 23 24 |
# File 'app/helpers/repres/bootstrap/application_helper.rb', line 22 def bootstrap_style( = {}) render partial: 'repres/bootstrap/style', locals: { options: } end |