Module: Writefully::ApplicationHelper
- Defined in:
- app/helpers/writefully/application_helper.rb
Instance Method Summary collapse
- #activeable_link_to(type, name, path, options = {}) ⇒ Object
- #link_icon(icon) ⇒ Object
- #path_active?(path) ⇒ Boolean
Instance Method Details
#activeable_link_to(type, name, path, options = {}) ⇒ Object
11 12 13 |
# File 'app/helpers/writefully/application_helper.rb', line 11 def activeable_link_to(type, name, path, = {}) render 'activeable_link_to', type: type, name: name, path: path, options: end |
#link_icon(icon) ⇒ Object
7 8 9 |
# File 'app/helpers/writefully/application_helper.rb', line 7 def link_icon(icon) content_tag :span, nil,class: "glyphicon glyphicon-#{icon}" if icon end |
#path_active?(path) ⇒ Boolean
3 4 5 |
# File 'app/helpers/writefully/application_helper.rb', line 3 def path_active?(path) request.path == path ? 'active' : nil end |