Module: PaperTrailUi::ApplicationHelper
- Defined in:
- app/helpers/paper_trail_ui/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#row_counter_with_paging(index, options = {}) ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/paper_trail_ui/application_helper.rb', line 4 def row_counter_with_paging(index, ={}) current_page = (params[[:page_param] || :page] || 1).to_i per_page = [:per_page] || WillPaginate.per_page ((current_page-1)*per_page)+index+1 end |