Answer the question
In order to leave comments, you need to log in
How to embed ruby in js?
I want to open a block with all the comments when I click on the button, how can I insert this code into js so that it works?
<h1>Все комментарии</h1>
<% @task.comments.each do |comment| %>
<p><strong><%= comment.name %></strong> : <%= comment.description %> </p>
<% end %>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question