Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>TUTAJ SA KOMENTARZE</h1>
- <ul>
- <% @comments.each do |comment| %>
- <li>
- <p><%= comment.description%></p>
- <p>uzytkownik <%= comment.user%></p>
- </li>
- <% end %>
- </ul>
- <%= form_for(@comment) do |f| %>
- <% if @comment.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:</h2>
- <ul>
- <% @comment.errors.full_messages.each do |message| %>
- <li><%= message %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
- <div class="field">
- <%= f.label :description %><br>
- <%= f.text_area :description %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement