This commit is contained in:
albert
2010-10-20 16:03:00 -04:00
parent 7b28eeea4d
commit d7eafdaaf5
6 changed files with 23 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
class CommentsController < ApplicationController
respond_to :html, :xml, :json
before_filter :member_only, :only => [:update, :create]
def index
@posts = Post.commented_before(params[:before_date] || Time.now).limit(8)