spree - how can i match html tags with no id with deface -
trying add column table in configuration menu, table has empty <th> </th> looks, when add column, adds after looks ugly, adding this
deface::override.new(:virtual_path => "spree/admin/user_groups/index", :name => "minimum_order_column", :insert_after => "code[erb-loud]:contains('description')", :partial => "spree/admin/user_groups/minimum_order_column") first weird thing adds after empty th, seems easy fix if remove it
admin/user_groups spree_user_groups
deface uses css selectors in general it's dirty work.
you should able th[3] or th:last find <th>
http://deface.heroku.com/ great tool in testing selectors.
Comments
Post a Comment