Module: DynamicText::ViewHelper
- Defined in:
- app/helpers/dynamic_text/view_helper.rb
Instance Method Summary collapse
- #dynamic_text_for(resource, attribute, opts = {}) ⇒ Object
- #editable_text_for(resource, attribute, opts = {}) ⇒ Object
Instance Method Details
#dynamic_text_for(resource, attribute, opts = {}) ⇒ Object
3 4 5 6 |
# File 'app/helpers/dynamic_text/view_helper.rb', line 3 def dynamic_text_for(resource, attribute, opts={}) DynamicText::ViewRenderer.new(self) .render_dynamic_text_for(resource, attribute, opts) end |
#editable_text_for(resource, attribute, opts = {}) ⇒ Object
8 9 10 11 |
# File 'app/helpers/dynamic_text/view_helper.rb', line 8 def editable_text_for(resource, attribute, opts={}) DynamicText::ViewRenderer.new(self) .render_editable_text_for(resource, attribute, opts) end |