Closed sunnyrjuneja closed 7 years ago
It already should be doing that. You have an extra argument in your code snippet though:
<%= active_link_to some_path(@path) do %>
<nav>Sub Navigation For Active Tab</nav>
<% end %>
Wow, you thought of everything. Thanks!
This is not true, html passed to the do block will always render.
Hello again Comfy,
Thank you for your great gem. It's been very handy. I was wondering if you would accept a pull request for active_link_to to yield to blocks if it's an active link. Here is my use case.
If not, no worries. I understand this might bloat your gem.