I am sure this is really simple so apologies for the naive question.
I am trying to test if my current page is 'jobs#index'. If it is I have some additional CSS and content that I would to include in the page, if not then I would like it to load the page without this additional content.
I believe it should be something along these lines but I can’t seem to get it right.
<% if path == 'jobs#index' %>
<div class="slidingDiv">
Fill this space with really interesting content.
</div>
<div class="show_hide">
FILTERS
</div>
<% else %>
<% end %>
Any advice really would be much appreciated!
I would put that in a helper method though.