Last active
August 29, 2015 13:59
-
-
Save zackperdue/10945610 to your computer and use it in GitHub Desktop.
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
= form_for Comment.new do |f| | |
= f.text_area :body | |
= f.button t("button.submit") | |
- @video.comments.reverse.each do |comment| | |
%div{class: 'comment', id: "comment_#{comment.id}"} | |
= simple_format comment.body |
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
<form accept-charset="UTF-8" action="/videos/84jfu3js/comments" class="new_comment" id="new_comment" method="post">< | |
div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /> | |
<input name="authenticity_token" type="hidden" value="1J/a93SACpJzTk1q7+oipNDDrxua64Xb+TEEBDA0Nbg=" /></div> | |
<textarea id="comment_body" name="comment[body]"></textarea> | |
<button name="button" type="submit">Submit</button> | |
</form> | |
<!-- Loop --> | |
<div class='comment' id='comment_'> | |
<p></p> | |
</div> | |
<div class='comment' id='comment_29'> | |
<p>This is my new comment</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment