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_textarea(method, options = {}) ⇒ Object Also known as: rich_text_area

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

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

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



101
102
103
# File 'app/helpers/action_text/tag_helper.rb', line 101

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