Created
September 5, 2015 18:39
-
-
Save mbuttler/c58f7fd194a09ed8430f to your computer and use it in GitHub Desktop.
Threadly - index.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
<div class="header"> | |
<div class="container"> | |
<h1>threadly</h1> | |
</div> | |
</div> | |
<div class="main"> | |
<div class="container"> | |
<!-- Form goes here --> | |
<%= form_for(@new_post) do |f| %> | |
<div class="field"> | |
<%= f.label :comment %> | |
<%= f.text_area :comment %> | |
<%= f.submit "post" %> | |
</div> | |
<% end %> | |
<ul class="comments"> | |
<% @all_posts.each do |p| %> | |
<li><%= p.comment %></li> | |
<% end %> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment