- <%= link_to t("layouts.header.welcome"), root_path, class: "active" %>
+ <%= link_to t("layouts.header.welcome"), root_path, class: ("active" if current_page?(root_path)) %>
<%= link_to t("layouts.header.news"), "#" %>
- <%= link_to t("layouts.header.debates"), debates_path %>
+ <%= link_to t("layouts.header.debates"), debates_path, class: ("active" if current_page?(controller: 'debates')) %>
<%= link_to t("layouts.header.initiatives"), "#" %>