deface icon indicating copy to clipboard operation
deface copied to clipboard

Deface ignores Ruby code in attrs on elements in Haml

Open radar opened this issue 11 years ago • 1 comments

Example app: https://github.com/radar/testing_deface_bug. Clone. Bundle.

  1. Go to http://localhost:3000/products, inspect "INDEX TEST" and see it has the class. Go to Go to http://localhost:3000/products/1, inspect "SHOW TEST" and see it does not have the class.

I'm willing to suggest that the cause of the madness lies somewhere in this code.

radar avatar Nov 15 '13 00:11 radar

Don't forget to rake db:migrate; confirmed this bug. You can comment out the /app/overrides/products_show.rb, reboot server, and see the proper HTML class is now being added by the HAML.

Lordnibbler avatar Nov 15 '13 00:11 Lordnibbler