app/helpers/application_helper.rb
# To put class=active into the menu links
To put class=active into the menu links
To put class = active into the menu links
def active_link(link)
    link.split(',').each do |value|
      if value.strip == params[:controller]
        "active"
      end
    end
    ""
  end
def active_link ( link ) link . split ( ',' ) . each do | value | if value . strip == params [ :controller ] "active" end end "" end
To put class=active into the menu links
To put class = active into the menu links
link