Module: Dorsale::CommentsHelper
- Included in:
- AllHelpers
- Defined in:
- app/helpers/dorsale/comments_helper.rb
Instance Method Summary collapse
- #comment_form_for(commentable) ⇒ Object
- #comments_for(commentable) ⇒ Object
- #comments_list_for(commentable) ⇒ Object
Instance Method Details
#comment_form_for(commentable) ⇒ Object
3 4 5 |
# File 'app/helpers/dorsale/comments_helper.rb', line 3 def comment_form_for(commentable) render partial: "dorsale/comments/form", locals: {commentable: commentable} end |
#comments_for(commentable) ⇒ Object
11 12 13 |
# File 'app/helpers/dorsale/comments_helper.rb', line 11 def comments_for(commentable) render partial: "dorsale/comments/comments", locals: {commentable: commentable} end |
#comments_list_for(commentable) ⇒ Object
7 8 9 |
# File 'app/helpers/dorsale/comments_helper.rb', line 7 def comments_list_for(commentable) render partial: "dorsale/comments/list", locals: {commentable: commentable} end |