Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # это часть выводить паршл
- #
- <div id="comments">
- <div id="comments_count"><%=@post.comments.size.rus_items('комментарий', 'комментария', 'комментариев') %></div>
- <% @post.comments.each_with_index do |comment, index| %>
- <%= render :partial => 'comments/comment', :locals => {:comment => comment, :index => index + 1} -%>
- <% end %>
- </div>
- #
- # Это паршл комментария
- #
- <div class="comment_header">
- <%= comment.created_at.to_formatted_s(:short) %>
- <%= link_to comment.user.full_name, :controller => 'users', :action => 'dude', :id => comment.user.id %>
- <%= index %>
- <p><%= simple_format h(comment.content) %></p>
- </div>
Add Comment
Please, Sign In to add comment