Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

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

Open
brchristian opened this issue Jun 25, 2014 · 1 comment
Open

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

brchristian opened this issue Jun 25, 2014 · 1 comment

Comments

@brchristian
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants