Basically, I have a lot of code that looks like this:
link_to t(\'.profile\'), business_path(@business), class: \'#{\'active\' if current_page? business_path(@bu
This is a good case for writing your own helper that wraps the link_to. In your application_helper.rb you can write a method active_link_to that takes the same params as link_to + current_page, and then just calls link_to like you are doing above.
active_link_to