I'm using rails 3.2.13
I have this array of hashes:
[{"name" => 1, "foo" => "bar"},{"second" => 2, "foo" => "bar"}]
I put them in a variable called @names and display them in the view like this:
<% @names.each do |name| %>
<%= name["name"] %>
<%= name["foo"] %>
<% end %>
The big question is how do i "paginate" them in such a way that there's button NEXT that shows me the first entry, then when i press next came the second and so on.
I have considered will_paginate but it didn't make sense since I still have to process in the view what I have to display in the page. Any ideas? Thanks a lot!