Making the talk page compatible with rails 2.1.2.

pull/6827/head
Joakim Kolsjö 15 years ago
parent a81711ba8f
commit a0299af264
  1. 2
      app/controllers/comments_controller.rb
  2. 3
      app/views/comments/index.html.erb

@ -10,7 +10,7 @@ class CommentsController < ApplicationController
:include => [:user, :details],
:order => "#{Journal.table_name}.created_on DESC",
:conditions => "notes!=''")
render :partial => "comment", :collection => @journals, :as => :journal
render :layout => false
end
def create

@ -0,0 +1,3 @@
<%- @journals.each do |journal| -%>
<%= render :partial => "comment", :locals => { :journal => journal } %>
<%- end -%>
Loading…
Cancel
Save