Skip to content

Instantly share code, notes, and snippets.

@mikecmpbll
Created March 27, 2014 11:25
Show Gist options
  • Save mikecmpbll/9805453 to your computer and use it in GitHub Desktop.
Save mikecmpbll/9805453 to your computer and use it in GitHub Desktop.
@log_rows = WillPaginate::Collection.create(log_data.parsed_response["current_page"]["_dc_obj"], log_data.parsed_response["per_page"], log_data.parsed_response["total_entries"]) do |pager|
pager.replace(@log_rows)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment