class Playbook::Pagination::Rails
def previous_or_next_page(page, text, classname)
def previous_or_next_page(page, text, classname) if page tag("li", link(text, page), class: classname) else tag("li", tag("span", text), class: "%s disabled") end end