Files
growstuff/app/views/comments/_inline_form.html.haml
Brenda WallaceandClaude Sonnet 5.5 73bf8b5552 Write a comment on the post page itself
The comment form now sits under the post's comments instead of on a page of
its own; the Comment buttons jump to it.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00

11 lines
512 B
Plaintext

-# Writing a comment on the page itself, under what it is about. It posts as it
-# always has; if the comment can't be saved, the new-comment page shows why.
#new-comment.new-comment
= bootstrap_form_for(Comment.new(commentable:)) do |f|
= f.text_area :body, rows: 4, required: true, label: 'Add a comment'
%span.form-text= render 'shared/markdown_help'
= f.hidden_field :commentable_id
= f.hidden_field :commentable_type
.text-end
= f.submit 'Post comment', class: 'btn btn-primary'