I have an erb block:
<% content_for :sidebar do %>
<% if defined? @products && defined? @taxon %>
<%= render :partial => "spree/shared/filters" %>
<% elsif defined? @taxonomies %>
<%= render :partial => "spree/shared/taxonomies" %>
<% end %>
<% end %>
I want to put different contents inside the content_for block so I tried defacing it like so:
<!-- replace_contents "erb[silent]:contains('content_for :sidebar')" -->
<%= render partial: "test" %>
This raises an error:
syntax error, unexpected '<', expecting keyword_end
Defacing a ruby block is something I never tried before.. Any ideas?