rmit-programming-club/network-vis

View on GitHub
app/helpers/application_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ApplicationHelper
  
  # Use this to make the nav buttons active when on the corresponding page
  # If you want to include other classes pass them in as a string
  def active(link_path, other_classes)
    current_page?(link_path) ? "#{other_classes} active" : "#{other_classes}"
  end
  
end