I am developing a Rails app.
after I execute a sql command like following:
sql="select * from some_tbl;"
rslt = ActiveRecord::Base.connection.execute(sql)
how can I get sliced results from rslt?
I mean for example, if the rslt.size is 200, I would like to get 20 results start from the 5th one (which like the array operation arr[5,20]), how to do it?
Try to convert
rsltto Array: