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

@@ -59,6 +59,9 @@ private
@posts = @post_set.posts
respond_with(@posts) do |format|
format.html {render :action => "index_by_post"}
format.xml do
render :xml => @posts.to_xml(:root => "posts")
end
end
end
@@ -66,6 +69,9 @@ private
@notes = Note.search(params[:search]).order("id desc").paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
respond_with(@notes) do |format|
format.html {render :action => "index_by_note"}
format.xml do
render :xml => @notes.to_xml(:root => "notes")
end
end
end
end