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

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