Wednesday, 12 November 2014

start end pagination

_start = @current_page >= 5 ? @current_page -5 : 1
_end = @current_page + 5
@pagination = Array(_start.._end)
view raw gistfile1.rb hosted with ❤ by GitHub

No comments:

Post a Comment