app/helpers/application_helper.rb
# Returns the value of serial number after taking "page" number into account
Returns the value of serial number after taking "page" number into account
Returns the value of serial number after taking " page " number into account
def serial_number(index)
    if not params[:page].blank?
      if params[:page].to_i >= 1
        (index + 1) + (params[:page].to_i - 1) * Account.per_page
      end
    else
      index + 1
    end
  end
def serial_number ( index ) if not params [ :page ] . blank? if params [ :page ] . to_i >= 1 ( index + 1 ) + ( params [ :page ] . to_i - 1 ) * Account . per_page end else index + 1 end end
Returns the value of serial number after taking "page" number into account
Returns the value of serial number after taking " page " number into account
index