Sha256: 3930b49ad250ee6e54d6bf611f914f5174e0a0a584c566ebfc05234e1b723f99
Contents?: true
Size: 396 Bytes
Versions: 26
Compression:
Stored size: 396 Bytes
Contents
module Writefully module ApplicationHelper def path_active?(path) request.path == path ? 'active' : nil end def link_icon(icon) content_tag :span, nil,class: "glyphicon glyphicon-#{icon}" if icon end def activeable_link_to(type, name, path, options = {}) render 'activeable_link_to', type: type, name: name, path: path, options: options end end end
Version data entries
26 entries across 26 versions & 1 rubygems