Module: Writefully::ApplicationHelper

Defined in:
app/helpers/writefully/application_helper.rb

Instance Method Summary collapse

Instance Method Details



11
12
13
# File 'app/helpers/writefully/application_helper.rb', line 11

def activeable_link_to(type, name, path, options = {})
  render 'activeable_link_to', type: type, name: name, path: path, options: options
end


7
8
9
# File 'app/helpers/writefully/application_helper.rb', line 7

def link_icon(icon)
   :span, nil,class: "glyphicon glyphicon-#{icon}" if icon
end

#path_active?(path) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/helpers/writefully/application_helper.rb', line 3

def path_active?(path)
  request.path == path ? 'active' : nil
end