From 985adbb0431a1fa26c0465bb7c66f964ba818249 Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Mon, 26 Aug 2019 11:20:30 +0530 Subject: [PATCH] fix linters in form --- app/views/admin/tracks/_nested_comments.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/tracks/_nested_comments.html.haml b/app/views/admin/tracks/_nested_comments.html.haml index 111fbd53..2d54d813 100644 --- a/app/views/admin/tracks/_nested_comments.html.haml +++ b/app/views/admin/tracks/_nested_comments.html.haml @@ -6,10 +6,11 @@ %div %a.pull-right.comment-reply-link{ href: '#' } Reply .comment-reply - = semantic_form_for :comment, url: comment_admin_conference_program_track_path(@conference.short_title, @track.short_name, comment.commentable_id), method: :post do |f| + = semantic_form_for :comment, url: comment_admin_conference_program_track_path(@conference.short_title, + @track.short_name, comment.commentable_id), method: :post do |f| = f.input :body %input{ name: 'parent', type: 'hidden', value: comment.id } - %input{ name: 'authenticity_token', type: 'hidden', value: '#{form_authenticity_token}' } + %input{ name: 'authenticity_token', type: 'hidden', value: form_authenticity_token.to_s } %button.btn.btn-primary.pull-right{ name: 'button', type: 'submit' } Add Reply - comment.children.each do |child| = render 'nested_comments', comment: child, padding: 50