def list
@post_pages, @posts = paginate :posts, :per_page => 5 ,:condition => ["title like ?","%#{keyword}%"]) ,:order=>'id DESC'
end
分页条件查询
最新推荐文章于 2024-07-21 09:51:37 发布
def list
@post_pages, @posts = paginate :posts, :per_page => 5 ,:condition => ["title like ?","%#{keyword}%"]) ,:order=>'id DESC'
end