instance method
rich_textarea
Ruby on Rails 8.1.2
Since v8.0.4Available in: v8.0.4 v8.1.2
Signature
rich_textarea(method, options = {}, &block)
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.
Parameters
-
methodreq -
optionsopt = {} -
blockblock
Source
# File actiontext/app/helpers/action_text/tag_helper.rb, line 114
def rich_textarea(method, options = {}, &block)
@template.rich_textarea(@object_name, method, objectify_options(options), &block)
end
Defined in actiontext/app/helpers/action_text/tag_helper.rb line 114
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder