Module: Repres::React::ApplicationHelper
- Defined in:
- app/helpers/repres/react/application_helper.rb
Overview
Application Helper 是适用于 HTML 与 React 相关的视图辅助模块。
Instance Method Summary collapse
-
#react_script(options = {}) ⇒ Object
调用 repres/react/script 这个局部脚本, options 是传递的参数。.
Instance Method Details
#react_script(options = {}) ⇒ Object
调用 repres/react/script 这个局部脚本, options 是传递的参数。
8 9 10 |
# File 'app/helpers/repres/react/application_helper.rb', line 8 def react_script( = {}) render partial: 'repres/react/script', locals: { options: } end |