Created
October 12, 2012 21:30
-
-
Save binaryphile/3881634 to your computer and use it in GitHub Desktop.
deface set attributes data-erb-class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set_attributes '[data-hook=product_price]' | |
attributes :data-erb-class => 'columns five <% if [email protected]_variants? %> alpha <% else %> omega <% end %>' |
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
(eval):2: syntax error, unexpected tASSOC
attributes :data-erb-class => 'columns five <% if !@Pro...