Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/action_text/tag_helper.rb

Instance Method Summary collapse

Instance Method Details

#rich_text_area(method, options = {}) ⇒ Object

Wraps ActionView::Helpers::FormHelper#rich_text_area for form builders:

<%= form_with model: @message do |f| %>
  <%= f.rich_text_area :content %>
<% end %>

Please refer to the documentation of the base helper for details.



89
90
91
# File 'app/helpers/action_text/tag_helper.rb', line 89

def rich_text_area(method, options = {})
  @template.rich_text_area(@object_name, method, objectify_options(options))
end