質問編集履歴

1

markdownのページを記載してなかったのでこちらに載せておきます。

2020/04/22 12:27

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -117,3 +117,37 @@
117
117
  ```
118
118
 
119
119
  使用しているgem 'redcarpet'のhelperの記述です。
120
+
121
+
122
+
123
+ ```ruby
124
+
125
+ show.html.haml
126
+
127
+
128
+
129
+ .show_content
130
+
131
+ = markdown(@post.content).html_safe
132
+
133
+
134
+
135
+
136
+
137
+ -if current_user.id = @post.user_id
138
+
139
+ .show_form
140
+
141
+ .show_form__edit
142
+
143
+ =link_to 'EDIT',edit_post_path(@post.id)
144
+
145
+ .show_form__delete
146
+
147
+ =link_to 'DELETE',post_path(@post.id) ,method: :delete
148
+
149
+ ```
150
+
151
+
152
+
153
+ こちらがその問題のページで検証ツールで見た状態の画像がこちらです![イメージ説明](524e338d70c1b550cf3162a8ac2d20bc.png)