-
-
Save nicedawg/5e13311132f323e425be2488c7b2f5d4 to your computer and use it in GitHub Desktop.
[Beginning Rails 6] Listing 9-2. The Article Partial in app/views/articles/show.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= render @article %> | |
<h3>Comments</h3> | |
<div id="comments"> | |
<%= render @article.comments %> | |
</div> | |
<%= link_to "new comment", new_article_comment_path(@article), remote: true, id: 'new_comment_link' %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment