This commit is contained in:
Toks
2013-05-07 22:18:11 -04:00
parent a5418bcbb4
commit 3d98d4b4ec
4 changed files with 13 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ class DmailsController < ApplicationController
end
def index
cookies[:dmail_folder] = params[:folder]
@search = Dmail.visible.search(params[:search])
@dmails = @search.order("dmails.created_at desc").paginate(params[:page])
respond_with(@dmails) do |format|