There's a better way: active_link_to
This gem is amazing - you just have to use the = active_link_to "link", path()
helper, and it will give an active class. We used it in a commercial app, and it worked out of the box
It's better than the current_page?
method by far
Update
As per the comments, conditional styling would be something like this:
<% if defined?(params[:by_vip]) || defined?(params[:other]) %>
<% active_class = "active" %>
<% end %>
<%= link_to "your_link, "#", class: active_class %>
Yes, it's basic & it can be put into a helper, but I hope it shows you what you can do!