fixes #1108
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user