rb.html

Ruby code posted by test
created at 01 Jul 03:06

Edit | Back
1
2
3
4
5
6
7
8
9
10
<% @article.comments.each do |comment| %>
  <%= comment.body %>
  <%= comment.user.email %>
  <br>
<% end %>
<hr>
<%= form_with(model: [@article, Comment.new], local: true) do |f| %>
  <%= f.text_area :body %>
  <%= f.submit %>
<% end %>
246 Bytes in 4 ms with coderay