假设我有一个Joke的model和controller,我要做一个接口给移动端调用(返回xml),我想以分页的形式(即请求参数中传过来page和pageCount)返回数据,我在controller中定义了
def getJokeByPageAndPageCount
end
这个方法,后面怎么做,把路由设到这个方法,如何分离出page和pageCount参数。。。
完全的web菜鸟,帮忙,Thank you
def getJokeByPageAndPageCount
end
这个方法,后面怎么做,把路由设到这个方法,如何分离出page和pageCount参数。。。
完全的web菜鸟,帮忙,Thank you