From a0299af264cbd67c718f2e28511543717af52f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Kolsj=C3=B6?= Date: Sat, 16 Jan 2010 19:36:13 +0100 Subject: [PATCH] Making the talk page compatible with rails 2.1.2. --- app/controllers/comments_controller.rb | 2 +- app/views/comments/index.html.erb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 app/views/comments/index.html.erb 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 -%>