URLごとに表示を変えたいとき
request.path.include?()を使うと良い。()の中の文字がURLに入っているかいないかを判断する。
<%if request.path.include?("mypage")%>
<li class="nav-item active">
<%= link_to '「ものを作る」', new_mypage_product_path, class:"nav-link"%>
</li>
<%end%>
参考 https://qiita.com/Yohei_Shiina/items/ed39dfd74895d54f3cf2