BDQ / deface-this

Test harness app for Deface
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Following the tutorial on Spree Guides doesn't work #8

Open brchristian opened 10 years ago

brchristian commented 10 years ago

Following the Spree Guide tutorial, at deface.heroku.com, I added in the following code:

<% if products.empty? %>
 <%= Spree.t(:no_products_found) %>
<% elsif params.key?(:keywords) %>
  <h3><%= Spree.t(:products) %></h3>
<% end %>

and the following selector:

erb[loud]:contains('t(:products)')

However, the Deface website failed to match. What's going on here? Is this a problem in the Spree Guides, or in the Deface website?

QuintinAdam commented 9 years ago

the deface website is using deface 0.9.

erb[loud]:contains('t(:products)') is the new 1.0+ syntax. code[erb-loud]:contains('t(:products)') is the old 0.9 syntax.