Sha256: 10f9e56c3de7f71f45e4b56860db92c39bf5d82bcc7425ba5366584331fc5a42
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
module Buttafly module ApplicationHelper def nav_link_to(text, path) class_name = current_page?(path) ? 'active' : '' content_tag(:li, class: "#{class_name}") do link_to text, path end end def status_description(status) case status when "not_imported" "This file is present on the server and a record has been created, but it has not yet been imported." when "imported" "This file has been imported into the database and its contents converted to json." when "processed" "This file's purchase data has successfully generated transactions." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buttafly-0.0.1 | app/helpers/buttafly/application_helper.rb |