dfischer / betterfrontend

A community recommendation on how to make front-end development better. How-to, best-practices, and more.
http://www.betterfrontend.com
77 stars 10 forks source link

HAML using :id => wrong. #22

Open dfischer opened 12 years ago

dfischer commented 12 years ago

Need to add docs for following use case which is detrimental.

Public Service Announcement: I don't know who's doing this, but whoever's been doing an #id and {:id => 'id'} in the same >element in haml needs to stop doing that [8/16/12 11:05:27 AM] Hong: it's wrong and messes up the resulting id because haml joins it [8/16/12 11:05:56 AM] Hong: so %div#someid{:id => 'someid'} becomes

[8/16/12 11:06:01 AM] Hong: which is wrong [8/16/12 11:06:18 AM] Hong: if someone sees that in the views, please clean it up