<%= image_tag comment.image.url(:thumb),:class => "rounded-circle img-fluid" %>
というimageから、リンクを飛ばしたいのですが、<% link to~~~~%>をつかい、
<%= link_to image_tag comment.image.url(:thumb),:class => "rounded-circle img-fluid", comment %>
とすると、エラーがでます。
文法ミスだと書いてあるのですが、どういうふうにしたらいいかわかりません。
教えていただけると幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。