How to implement pagination for Ruby Hash? : I am working on a Ruby and Rails application and need to implement pagination for the below hash. Need to show the rooms floor wise with pagination.

Hash = { floor_1 : [101,102,103], floor_2: [201,203,204], floor_3: [301,302,303] }

is there any idea how can we do that?

I am using will pagination gem and its not working.