Skip to content

Instantly share code, notes, and snippets.

@binaryphile
Created October 12, 2012 21:30
Show Gist options
  • Save binaryphile/3881634 to your computer and use it in GitHub Desktop.
Save binaryphile/3881634 to your computer and use it in GitHub Desktop.
deface set attributes data-erb-class
set_attributes '[data-hook=product_price]'
attributes :data-erb-class => 'columns five <% if !@product.has_variants? %> alpha <% else %> omega <% end %>'
@binaryphile
Copy link
Author

(eval):2: syntax error, unexpected tASSOC
attributes :data-erb-class => 'columns five <% if !@Pro...

@BDQ
Copy link

BDQ commented Oct 13, 2012

I think the :data-erb-class might need to be a string so 'data-erb-class' => 'columns five....'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment