File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
actiontext/app/helpers/action_text Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,11 @@ module FormHelper
66
66
# * <tt>[:data][:blob_url_template]</tt> - Defaults to <tt>rails_service_blob_url(":signed_id", ":filename")</tt>.
67
67
#
68
68
# ==== Example
69
- # form_with(model: @message) do |form|
70
- # form.rich_text_area :content
71
- # end
69
+ # rich_text_area :message, :content
72
70
# # <input type="hidden" name="message[content]" id="message_content_trix_input_message_1">
73
71
# # <trix-editor id="content" input="message_content_trix_input_message_1" class="trix-content" ...></trix-editor>
74
72
#
75
- # form_with(model: @message) do |form|
76
- # form.rich_text_area :content, value: "<h1>Default message</h1>"
77
- # end
73
+ # rich_text_area :message, :content, value: "<h1>Default message</h1>"
78
74
# # <input type="hidden" name="message[content]" id="message_content_trix_input_message_1" value="<h1>Default message</h1>">
79
75
# # <trix-editor id="content" input="message_content_trix_input_message_1" class="trix-content" ...></trix-editor>
80
76
def rich_text_area ( object_name , method , options = { } )
You can’t perform that action at this time.
0 commit comments