diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 37d45a442a..c86c5f4d36 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -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 diff --git a/app/views/comments/index.html.erb b/app/views/comments/index.html.erb new file mode 100644 index 0000000000..ec8316e8d2 --- /dev/null +++ b/app/views/comments/index.html.erb @@ -0,0 +1,3 @@ +<%- @journals.each do |journal| -%> + <%= render :partial => "comment", :locals => { :journal => journal } %> +<%- end -%>