我是Ruby on Rails的新手,並且很難弄清楚如何在多個頁面上不顯示div。目前,我只能對單頁進行以下工作:Ruby on Rails:'不在所有這些頁面上顯示'條件
<% if signed_in? %>
<% unless current_page?(account_setup_path) %>
<!--job seeker options-->
<% if current_user.job_seeker? %>
test
<% end %>
<!--end job seeker options-->
<!--employer options-->
<% if current_user.employer? %>
<% end %>
<!--end employer options-->
<% end %>
<% end %>
任何幫助將不勝感激!提前致謝!
請更多具體關於你想要做什麼 –