Class: EdgarHelper::RemoteLinkRenderer

Inherits:
WillPaginate::ActionView::LinkRenderer
  • Object
show all
Defined in:
app/helpers/edgar_helper.rb

Overview

Paginate renderer for Ajax.

SEE ALSO

github.com/mislav/will_paginate/pull/133/files

Instance Method Summary (collapse)

Instance Method Details



357
358
359
360
361
362
363
364
365
# File 'app/helpers/edgar_helper.rb', line 357

def link(text, target, attributes = {})
  if target.is_a? Fixnum
    attributes[:rel] = rel_value(target)
    target = url(target)
  end
  attributes[:href] = target
  attributes["data-remote"] = true
  tag(:a, text, attributes)
end