This commit is contained in:
albert
2013-03-29 15:37:28 -04:00
parent 6ba0f23542
commit 541dabaaf6
22 changed files with 106 additions and 15 deletions

View File

@@ -20,7 +20,11 @@ class ForumTopicsController < ApplicationController
def index
@search = ForumTopic.active.search(params[:search])
@forum_topics = @search.order("is_sticky DESC, updated_at DESC").paginate(params[:page], :search_count => params[:search])
respond_with(@forum_topics)
respond_with(@forum_topics) do |format|
format.xml do
render :xml => @forum_topics.to_xml(:root => "forum-topics")
end
end
end
def show